| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "views/screen.h" | 5 #include "views/screen.h" |
| 6 | 6 |
| 7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
| 8 | 8 |
| 9 namespace views { | 9 namespace views { |
| 10 | 10 |
| 11 // static | 11 // static |
| 12 gfx::Point Screen::GetCursorScreenPoint() { | 12 gfx::Point Screen::GetCursorScreenPoint() { |
| 13 gint x, y; | 13 gint x, y; |
| 14 gdk_display_get_pointer(NULL, NULL, &x, &y, NULL); | 14 gdk_display_get_pointer(gdk_display_get_default(), NULL, &x, &y, NULL); |
| 15 return gfx::Point(x, y); | 15 return gfx::Point(x, y); |
| 16 } | 16 } |
| 17 | 17 |
| 18 } // namespace | 18 } // namespace |
| 19 | 19 |
| OLD | NEW |