quartz: Stop using gdk_display_get_default_screen

The GdkScreen api is going away. The quartz screen is
a singleton anyway.
This commit is contained in:
Matthias Clasen 2017-11-01 17:30:00 -04:00
parent 1605d378e5
commit 44a173824e
2 changed files with 3 additions and 3 deletions

View File

@ -330,8 +330,8 @@ gdk_quartz_device_core_window_at_position (GdkDevice *device,
NSPoint point;
gint x_tmp, y_tmp;
display = gdk_device_get_display (device);
screen = gdk_display_get_default_screen (display);
display = _gdk_display;
screen = _gdk_screen;
/* Get mouse coordinates, find window under the mouse pointer */
point = [NSEvent mouseLocation];

View File

@ -30,7 +30,7 @@ static void
gdk_quartz_monitor_get_workarea (GdkMonitor *monitor,
GdkRectangle *dest)
{
GdkQuartzScreen *quartz_screen = GDK_QUARTZ_SCREEN(gdk_display_get_default_screen (monitor->display));
GdkQuartzScreen *quartz_screen = GDK_QUARTZ_SCREEN(_gdk_screen);
GdkQuartzMonitor *quartz_monitor = GDK_QUARTZ_MONITOR(monitor);
GDK_QUARTZ_ALLOC_POOL;