[gtk+] gdk/win32/gdkevents-win32.c: Avoid gdk_device_manager_get_core_pointer()



commit 4b3c0314ddc37d4204e55710744ed31f7cd21c64
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Oct 26 16:36:03 2016 +0800

    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

 gdk/win32/gdkevents-win32.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c
index 7c64117..9854ee0 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);
       }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]