mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
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)
|
||||
{
|
||||
GdkWaylandPointerData *pointer;
|
||||
GList *children;
|
||||
GList *children = NULL;
|
||||
|
||||
if (surface == NULL)
|
||||
children = gdk_wayland_display_get_toplevel_surfaces (gdk_device_get_display (device));
|
||||
else
|
||||
children = surface->children;
|
||||
|
||||
pointer = GDK_WAYLAND_DEVICE (device)->pointer;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user