[gtk/wip/matthiasc/popup5: 31/75] wayland: Stop using surface->children



commit 95b6211d24898fb8dfe61586dd8e58d2069bd532
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Mar 23 09:28:11 2019 -0400

    wayland: Stop using surface->children
    
    It is always NULL.

 gdk/wayland/gdkdevice-wayland.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index 646f37057b..36ed322d40 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]