forked from AuroraMiddleware/gtk
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
This commit is contained in:
parent
306fd15c34
commit
4b3c0314dd
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user