[Xfce4-commits] [apps/xfce4-taskmanager] 12/14: properly initialize screen before using it

noreply at xfce.org noreply at xfce.org
Fri Dec 19 22:58:42 CET 2014

This is an automated email from the git hooks/post-receive script.

landry pushed a commit to branch master
in repository apps/xfce4-taskmanager.

commit 74edf4be2a6b50a379e4850900834de6684c21c9
Author: Landry Breuil <landry at xfce.org>
Date:   Fri Dec 19 22:48:36 2014 +0100

    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);

To stop receiving notification emails like this one, please contact
the administrator of this repository.

More information about the Xfce4-commits mailing list