[gtk/wip/matthiasc/popup4: 48/76] wayland: Stop using surface->children



commit 7f11d016b3a7e280eb0127e19965f071459888e0
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 f2ab03cbc4..f63561bd75 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -581,12 +581,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]