[Xfce4-commits] <xfce4-panel:master> Make sure there are not 2 active windows on ws-changes (bug #6474).

Nick Schermer noreply at xfce.org
Tue Jun 1 19:00:01 CEST 2010


Updating branch refs/heads/master
         to e2f6f79050cb29b54fbeca7fab9954908b3193a8 (commit)
       from 237e89d8f693f1089f25fddf247ebc8b4a3e5353 (commit)

commit e2f6f79050cb29b54fbeca7fab9954908b3193a8
Author: Nick Schermer <nick at xfce.org>
Date:   Tue Jun 1 18:57:24 2010 +0200

    Make sure there are not 2 active windows on ws-changes (bug #6474).

 plugins/tasklist/tasklist-widget.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c
index d32ef37..cdf696d 100644
--- a/plugins/tasklist/tasklist-widget.c
+++ b/plugins/tasklist/tasklist-widget.c
@@ -2179,6 +2179,9 @@ xfce_tasklist_button_workspace_changed (WnckWindow        *window,
 
   xfce_tasklist_sort (tasklist);
 
+  /* make sure we don't have two active windows (bug #6474) */
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (child->button), FALSE);
+
   if (!tasklist->all_workspaces)
     xfce_tasklist_active_workspace_changed (tasklist->screen, NULL, tasklist);
 }



More information about the Xfce4-commits mailing list