x11: Stop setting the query_state vfunc

This commit is contained in:
Matthias Clasen 2020-08-26 16:06:11 -04:00 committed by Ahmed Eldemery
parent 0546f09b1d
commit 9dbf81e7d9
2 changed files with 2 additions and 5 deletions

View File

@ -108,7 +108,6 @@ gdk_x11_device_xi2_class_init (GdkX11DeviceXI2Class *klass)
object_class->set_property = gdk_x11_device_xi2_set_property;
device_class->set_surface_cursor = gdk_x11_device_xi2_set_surface_cursor;
device_class->query_state = gdk_x11_device_xi2_query_state;
device_class->grab = gdk_x11_device_xi2_grab;
device_class->ungrab = gdk_x11_device_xi2_ungrab;
device_class->surface_at_position = gdk_x11_device_xi2_surface_at_position;

View File

@ -34,6 +34,7 @@
#include "gdkvisual-x11.h"
#include "gdkinternals.h"
#include "gdkdeviceprivate.h"
#include "gdkdevice-xi2-private.h"
#include "gdkframeclockidleprivate.h"
#include "gdkasync.h"
#include "gdkeventsource.h"
@ -2669,10 +2670,7 @@ gdk_x11_surface_get_device_state (GdkSurface *surface,
if (GDK_SURFACE_DESTROYED (surface))
return FALSE;
/*HIDPI: handle coords here?*/
GDK_DEVICE_GET_CLASS (device)->query_state (device, surface,
&child,
x, y, mask);
gdk_x11_device_xi2_query_state (device, surface, &child, x, y, mask);
return child != NULL;
}