summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-09-04 21:52:33 +0200
committerBenjamin Otte <otte@redhat.com>2016-10-16 18:17:21 +0200
commit7232b4f7353ca66450e9e5b6f1b5c6d02c1fe2f9 (patch)
tree9d370988a685abac507b6269cc14dfe50846ca5c /gdk
parentd33c251cf68d97ecb8bfbd767d323f4e745fd6c8 (diff)
downloadgtk+-7232b4f7353ca66450e9e5b6f1b5c6d02c1fe2f9.tar.gz
x11: Use GdkMonitor APIs
Diffstat (limited to 'gdk')
-rw-r--r--gdk/x11/gdkcursor-x11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/x11/gdkcursor-x11.c b/gdk/x11/gdkcursor-x11.c
index 3cce62fed4..7f1487328e 100644
--- a/gdk/x11/gdkcursor-x11.c
+++ b/gdk/x11/gdkcursor-x11.c
@@ -358,7 +358,7 @@ gdk_x11_cursor_get_surface (GdkCursor *cursor,
/* Assume the currently set cursor was defined for the screen
scale */
scale =
- gdk_screen_get_monitor_scale_factor (gdk_display_get_default_screen (display), 0);
+ gdk_monitor_get_scale_factor (gdk_display_get_primary_monitor (display));
surface = gdk_window_create_similar_image_surface (NULL,
CAIRO_FORMAT_ARGB32,
@@ -590,7 +590,7 @@ _gdk_x11_display_get_cursor_for_surface (GdkDisplay *display,
else
{
target_scale =
- gdk_screen_get_monitor_scale_factor (gdk_display_get_default_screen (display), 0);
+ gdk_monitor_get_scale_factor (gdk_display_get_primary_monitor (display));
xcimage = create_cursor_image (surface, x, y, target_scale);
xcursor = XcursorImageLoadCursor (GDK_DISPLAY_XDISPLAY (display), xcimage);
XcursorImageDestroy (xcimage);