quartz: Drop another use of gdk_display_get_toplevel_windows
authorMatthias Clasen <mclasen@redhat.com>
Sun, 5 Nov 2017 23:30:03 +0000 (18:30 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 5 Nov 2017 23:30:03 +0000 (18:30 -0500)
This one was forgotten in the previous commit.

gdk/quartz/gdkwindow-quartz.c

index 5646b5004628962ff84bc5a28d86884b5dcd77d7..ad11cc19ee7acb6290d0689ceb097dc873c7514b 100644 (file)
@@ -681,10 +681,9 @@ _gdk_quartz_window_did_resign_main (GdkWindow *window)
     {
       GList *toplevels;
 
-      toplevels = gdk_display_get_toplevel_windows (_gdk_display);
+      toplevels = get_toplevels ();
       if (toplevels)
         new_window = toplevels->data;
-      g_list_free (toplevels);
     }
 
   if (new_window &&