forked from AuroraMiddleware/gtk
wayland: Stop using surface->children
It is always NULL.
This commit is contained in:
parent
e68c5541e2
commit
7aae92656d
@ -591,12 +591,10 @@ gdk_wayland_device_query_state (GdkDevice *device,
|
|||||||
GdkModifierType *mask)
|
GdkModifierType *mask)
|
||||||
{
|
{
|
||||||
GdkWaylandPointerData *pointer;
|
GdkWaylandPointerData *pointer;
|
||||||
GList *children;
|
GList *children = NULL;
|
||||||
|
|
||||||
if (surface == NULL)
|
if (surface == NULL)
|
||||||
children = gdk_wayland_display_get_toplevel_surfaces (gdk_device_get_display (device));
|
children = gdk_wayland_display_get_toplevel_surfaces (gdk_device_get_display (device));
|
||||||
else
|
|
||||||
children = surface->children;
|
|
||||||
|
|
||||||
pointer = GDK_WAYLAND_DEVICE (device)->pointer;
|
pointer = GDK_WAYLAND_DEVICE (device)->pointer;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user