diff options
-rw-r--r-- | gdk/quartz/gdkscreen-quartz.c | 4 |
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); |