forked from AuroraMiddleware/gtk
x11: Fix return value of get_device_state
We need to look a the position, not the child surface.
This commit is contained in:
parent
690d72e696
commit
9cddc36fe2
@ -2665,13 +2665,12 @@ gdk_x11_surface_get_device_state (GdkSurface *surface,
|
||||
double *y,
|
||||
GdkModifierType *mask)
|
||||
{
|
||||
GdkSurface *child;
|
||||
|
||||
if (GDK_SURFACE_DESTROYED (surface))
|
||||
return FALSE;
|
||||
|
||||
gdk_x11_device_xi2_query_state (device, surface, &child, x, y, mask);
|
||||
return child != NULL;
|
||||
gdk_x11_device_xi2_query_state (device, surface, NULL, x, y, mask);
|
||||
|
||||
return *x >= 0 && *y >= 0 && *x < surface->width && *y < surface->height;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user