summaryrefslogtreecommitdiff
path: root/gdk/win32
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2016-10-26 16:36:03 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2016-10-26 18:54:51 +0800
commit4b3c0314ddc37d4204e55710744ed31f7cd21c64 (patch)
tree0a29a75f7d5b41af73c16ae71b4ab5500e463c54 /gdk/win32
parent306fd15c344bbf86dae21935be255677acb7b488 (diff)
downloadgtk+-4b3c0314ddc37d4204e55710744ed31f7cd21c64.tar.gz
gdk/win32/gdkevents-win32.c: Avoid gdk_device_manager_get_core_pointer()
This function has been removed, so replace it with gdk_seat_get_pointer(). https://bugzilla.gnome.org/show_bug.cgi?id=773299
Diffstat (limited to 'gdk/win32')
-rw-r--r--gdk/win32/gdkevents-win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c
index 7c641176ad..9854ee0179 100644
--- a/gdk/win32/gdkevents-win32.c
+++ b/gdk/win32/gdkevents-win32.c
@@ -3124,7 +3124,7 @@ gdk_event_translate (MSG *msg,
if (windowpos->flags & SWP_HIDEWINDOW ||
((windowpos->flags & SWP_STATECHANGED) && IsIconic (msg->hwnd)))
{
- GdkDevice *device = gdk_device_manager_get_client_pointer (device_manager);
+ GdkDevice *device = gdk_seat_get_pointer (gdk_display_get_default_seat (display));
if ((pointer_grab != NULL && pointer_grab->window == window) ||
(keyboard_grab != NULL && keyboard_grab->window == window))
@@ -3492,7 +3492,7 @@ gdk_event_translate (MSG *msg,
if ((pointer_grab != NULL && pointer_grab -> window == window) ||
(keyboard_grab && keyboard_grab -> window == window))
{
- GdkDevice *device = gdk_device_manager_get_client_pointer (device_manager);
+ GdkDevice *device = gdk_seat_get_pointer (gdk_display_get_default_seat (display));
gdk_device_ungrab (device, msg -> time);
}