[gtk/wip/matthiasc/popup2: 83/93] wayland: Stop using surface->children



commit 4a4421267b4aaee446f520d0eae97c7231ab6dd3
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]