summaryrefslogtreecommitdiff
path: root/gdk/quartz
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-11-01 20:54:22 -0400
committerMatthias Clasen <mclasen@redhat.com>2017-11-01 20:54:22 -0400
commitb44ef37a21c7466838e82390caba7dc5fd034673 (patch)
tree1bc06be285aeb30201c9c39b7511be5833513c24 /gdk/quartz
parent93053adbf662f818fd32124861cf44f5893b528e (diff)
downloadgtk+-b44ef37a21c7466838e82390caba7dc5fd034673.tar.gz
quartz: Stop using gdk_screen_get_display
We can just use the field directly.
Diffstat (limited to 'gdk/quartz')
-rw-r--r--gdk/quartz/gdkscreen-quartz.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/quartz/gdkscreen-quartz.c b/gdk/quartz/gdkscreen-quartz.c
index 96ba223865..67a58a5623 100644
--- a/gdk/quartz/gdkscreen-quartz.c
+++ b/gdk/quartz/gdkscreen-quartz.c
@@ -123,7 +123,7 @@ gdk_quartz_screen_calculate_layout (GdkQuartzScreen *screen)
NSArray *array;
int i;
int max_x, max_y;
- GdkDisplay *display = gdk_screen_get_display (GDK_SCREEN (screen));
+ GdkDisplay *display = screen->display;
GdkQuartzDisplay *display_quartz = GDK_QUARTZ_DISPLAY (display);
g_ptr_array_free (display_quartz->monitors, TRUE);
@@ -214,7 +214,7 @@ _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_screen_get_display (screen));
+ windows = gdk_display_get_toplevel_windows (GDK_QUARTZ_SCREEN (screen)->display);
for (list = windows; list; list = list->next)
_gdk_quartz_window_update_position (list->data);