[Xfce4-commits] [xfce/xfce4-panel] 22/73: Tasklist, fixing race condition between desktop and window switching

noreply at xfce.org noreply at xfce.org
Sun Feb 26 16:34:03 CET 2017


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

andrzejr pushed a commit to branch master
in repository xfce/xfce4-panel.

commit ca26b39d4675484091e0ed416a4f1054206ec7b5
Author: Andrzej <ndrwrdck at gmail.com>
Date:   Wed May 14 20:24:45 2014 +0100

    Tasklist, fixing race condition between desktop and window switching
    
    In some cases clicking on a button switches to another desktop but fails
    to activate the application (another, previously activated window gets
    the focus).
    
    Not sure why gtk_main_iteration works and not e.g. XSync but it fixes
    the problem on affected systems.
---
 plugins/tasklist/tasklist-widget.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c
index 5631361..240b3dc 100644
--- a/plugins/tasklist/tasklist-widget.c
+++ b/plugins/tasklist/tasklist-widget.c
@@ -2983,7 +2983,8 @@ xfce_tasklist_button_activate (XfceTasklistChild *child,
               else if (wnck_screen_get_active_workspace (child->tasklist->screen) != workspace)
                 {
                   /* switch to the other workspace before we activate the window */
-                  wnck_workspace_activate (workspace, timestamp - 1);
+                  wnck_workspace_activate (workspace, timestamp);
+                  gtk_main_iteration ();
                 }
             }
           else if (workspace != NULL

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


More information about the Xfce4-commits mailing list