From 711bd0cc24508dbc44023e12e1731a1715cf5b91 Mon Sep 17 00:00:00 2001 From: Thaddaeus Tintenfisch Date: Mon, 23 Feb 2015 12:39:59 +0100 Subject: [PATCH] Fix window focus when clicking desktop launcher --- thunar/thunar-file.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c index cb08806..ccce326 100644 --- a/thunar/thunar-file.c +++ b/thunar/thunar-file.c @@ -1506,6 +1506,7 @@ thunar_file_execute (ThunarFile *file, gchar *exec; gchar *directory = NULL; gboolean is_secure = FALSE; + guint32 stimestamp; _thunar_return_val_if_fail (THUNAR_IS_FILE (file), FALSE); _thunar_return_val_if_fail (error == NULL || *error == NULL, FALSE); @@ -1629,10 +1630,12 @@ thunar_file_execute (ThunarFile *file, } } + stimestamp = gtk_get_current_event_time () + 1; + /* execute the command */ result = xfce_spawn_on_screen (thunar_util_parse_parent (parent, NULL), directory, argv, NULL, G_SPAWN_SEARCH_PATH, - snotify, gtk_get_current_event_time (), icon_name, error); + snotify, stimestamp, icon_name, error); } /* clean up */ -- 2.1.4