From 88a85b1b61b4cb74e6b4933aea2de5c81f499437 Mon Sep 17 00:00:00 2001 From: Lucas Murray Date: Sun, 15 Nov 2009 16:04:36 +0000 Subject: [PATCH] Correct the "switch to group window" list and behaviour of the "to the left/right" actions when right-clicking on an inactive tab in a titlebar. svn path=/trunk/KDE/kdebase/workspace/; revision=1049639 --- useractions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/useractions.cpp b/useractions.cpp index ff8e8f8b3f..6423227d12 100644 --- a/useractions.cpp +++ b/useractions.cpp @@ -310,7 +310,7 @@ void Workspace::initSwitchToTab() void Workspace::slotSwitchToTab( QAction* action ) { int side = action->data().toInt(); - int c_id = active_popup_client->clientGroup()->indexOfClient( active_popup_client ); + int c_id = active_popup_client->clientGroup()->indexOfVisibleClient(); int size = active_popup_client->clientGroup()->clients().count(); if( side == 0 ) // Left { @@ -353,7 +353,7 @@ void Workspace::switchToTabPopupAboutToShow() int index = 2; foreach( Client* c, active_popup_client->clientGroup()->clients() ) { - if( c != active_popup_client ) + if( c != active_popup_client->clientGroup()->visible() ) { action = switch_to_tab_popup->addAction( c->caption() ); action->setData( index );