win32: Stop using the query_state vfunc

This commit is contained in:
Matthias Clasen 2020-08-26 16:05:54 -04:00
parent 374c776749
commit 1d8ac79296
4 changed files with 2 additions and 6 deletions

View File

@ -160,7 +160,6 @@ gdk_device_virtual_class_init (GdkDeviceVirtualClass *klass)
GdkDeviceClass *device_class = GDK_DEVICE_CLASS (klass);
device_class->set_surface_cursor = gdk_device_virtual_set_surface_cursor;
device_class->query_state = gdk_device_virtual_query_state;
device_class->grab = gdk_device_virtual_grab;
device_class->ungrab = gdk_device_virtual_ungrab;
device_class->surface_at_position = _gdk_device_win32_surface_at_position;

View File

@ -226,7 +226,6 @@ gdk_device_win32_class_init (GdkDeviceWin32Class *klass)
GdkDeviceClass *device_class = GDK_DEVICE_CLASS (klass);
device_class->set_surface_cursor = gdk_device_win32_set_surface_cursor;
device_class->query_state = gdk_device_win32_query_state;
device_class->grab = gdk_device_win32_grab;
device_class->ungrab = gdk_device_win32_ungrab;
device_class->surface_at_position = _gdk_device_win32_surface_at_position;

View File

@ -230,7 +230,6 @@ gdk_device_wintab_class_init (GdkDeviceWintabClass *klass)
GdkDeviceClass *device_class = GDK_DEVICE_CLASS (klass);
device_class->set_surface_cursor = gdk_device_wintab_set_surface_cursor;
device_class->query_state = gdk_x11_device_xi2_query_state;
device_class->grab = gdk_device_wintab_grab;
device_class->ungrab = gdk_device_wintab_ungrab;
device_class->surface_at_position = gdk_device_wintab_surface_at_position;

View File

@ -1734,9 +1734,8 @@ gdk_surface_win32_get_device_state (GdkSurface *window,
g_return_val_if_fail (window == NULL || GDK_IS_SURFACE (window), FALSE);
GDK_DEVICE_GET_CLASS (device)->query_state (device, window,
&child,
x, y, mask);
_gdk_device_win32_query_state (device, window, &child, x, y, mask);
return (child != NULL);
}