[gtk+] quartz: Drop use of gdk_display_get_toplevel_windows
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] quartz: Drop use of gdk_display_get_toplevel_windows
- Date: Sun, 5 Nov 2017 23:29:01 +0000 (UTC)
commit 4f701c71f1d02319c00556445a1a2a72348d202b
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Nov 5 18:28:27 2017 -0500
quartz: Drop use of gdk_display_get_toplevel_windows
We can use the newly added helper function for this.
gdk/quartz/GdkQuartzNSWindow.c | 4 +---
gdk/quartz/gdkscreen-quartz.c | 5 +----
2 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/gdk/quartz/GdkQuartzNSWindow.c b/gdk/quartz/GdkQuartzNSWindow.c
index bf366c0..f6c50bc 100644
--- a/gdk/quartz/GdkQuartzNSWindow.c
+++ b/gdk/quartz/GdkQuartzNSWindow.c
@@ -727,7 +727,7 @@ update_context_from_dragging_info (id <NSDraggingInfo> sender)
event->dnd.context->dest_window = NULL;
- windows = gdk_display_get_toplevel_windows (display);
+ windows = get_toplevels ();
_gdk_quartz_window_nspoint_to_gdk_xy (aPoint, &gx, &gy);
for (list = windows; list; list = list->next)
@@ -743,8 +743,6 @@ update_context_from_dragging_info (id <NSDraggingInfo> sender)
if (gx > wx && gy > wy && gx <= wx + ww && gy <= wy + wh)
event->dnd.context->dest_window = win;
}
-
- g_list_free (windows);
}
device = gdk_drag_context_get_device (_gdk_quartz_drag_source_context);
diff --git a/gdk/quartz/gdkscreen-quartz.c b/gdk/quartz/gdkscreen-quartz.c
index d3001d5..b4b8490 100644
--- a/gdk/quartz/gdkscreen-quartz.c
+++ b/gdk/quartz/gdkscreen-quartz.c
@@ -214,12 +214,9 @@ _gdk_quartz_screen_update_window_sizes (GdkScreen *screen)
_gdk_root->abs_x = 0;
_gdk_root->abs_y = 0;
- windows = gdk_display_get_toplevel_windows (GDK_QUARTZ_SCREEN (screen)->display);
-
+ windows = get_toplevels ();
for (list = windows; list; list = list->next)
_gdk_quartz_window_update_position (list->data);
-
- g_list_free (windows);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]