wayland: Stop using surface->children

It is always NULL.
This commit is contained in:
Matthias Clasen 2019-03-23 09:28:11 -04:00
parent e68c5541e2
commit 7aae92656d

View File

@ -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;