[gtk/wip/matthiasc/popup2: 109/126] wayland: Stop using surface->children



commit 2f3cf67c21c74682906aaa102613daf069694ab3
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 5b0467bf71..30e5a2d450 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -577,12 +577,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]