summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkapplaunchcontext-x11.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-11-01 18:06:24 -0400
committerMatthias Clasen <mclasen@redhat.com>2017-11-01 19:44:28 -0400
commite3daf986caff31c2a1a4e8780206b759518690c2 (patch)
treec8fd57914308d41ac9db4aa1606267ba9a1b943a /gdk/x11/gdkapplaunchcontext-x11.c
parent473c642131e5dfcbfdf2c26e1d6464b5fbccc9a2 (diff)
downloadgtk+-e3daf986caff31c2a1a4e8780206b759518690c2.tar.gz
x11: Stop using gdk_display_get_default_screen
There's no point in using this api here, we can directly get the screen member from the GdkX11Display struct.
Diffstat (limited to 'gdk/x11/gdkapplaunchcontext-x11.c')
-rw-r--r--gdk/x11/gdkapplaunchcontext-x11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/x11/gdkapplaunchcontext-x11.c b/gdk/x11/gdkapplaunchcontext-x11.c
index 7abb0a1da0..a4e9800d6f 100644
--- a/gdk/x11/gdkapplaunchcontext-x11.c
+++ b/gdk/x11/gdkapplaunchcontext-x11.c
@@ -282,7 +282,7 @@ gdk_x11_app_launch_context_get_startup_notify_id (GAppLaunchContext *context,
ctx = GDK_APP_LAUNCH_CONTEXT (context);
display = ctx->display;
- screen = gdk_display_get_default_screen (ctx->display);
+ screen = GDK_X11_DISPLAY (display)->screen;
fileinfo = NULL;
@@ -399,7 +399,7 @@ gdk_x11_app_launch_context_launch_failed (GAppLaunchContext *context,
ctx = GDK_APP_LAUNCH_CONTEXT (context);
- screen = gdk_display_get_default_screen (ctx->display);
+ screen = GDK_X11_DISPLAY (ctx->display)->screen;
data = g_object_get_data (G_OBJECT (screen), "appinfo-startup-data");