mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
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:
parent
1605d378e5
commit
44a173824e
@ -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];
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user