From 74edf4be2a6b50a379e4850900834de6684c21c9 Mon Sep 17 00:00:00 2001 From: Landry Breuil Date: Fri, 19 Dec 2014 22:48:36 +0100 Subject: [PATCH] properly initialize screen before using it --- src/exec-tool-button.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/exec-tool-button.c b/src/exec-tool-button.c index d9d6a9f..50db0ca 100644 --- a/src/exec-tool-button.c +++ b/src/exec-tool-button.c @@ -86,6 +86,7 @@ execute_command (const gchar *command) GAppInfo *app_info; app_info = g_app_info_create_from_commandline (command, NULL, G_APP_INFO_CREATE_NONE, &error); if (!error) { + screen = gdk_screen_get_default(); display = gdk_screen_get_display (screen); launch_context = gdk_display_get_app_launch_context (display); gdk_app_launch_context_set_screen (launch_context, screen);