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
This commit is contained in:
Lucas Murray 2009-11-15 16:04:36 +00:00
parent e0bee92151
commit 88a85b1b61

View file

@ -310,7 +310,7 @@ void Workspace::initSwitchToTab()
void Workspace::slotSwitchToTab( QAction* action ) void Workspace::slotSwitchToTab( QAction* action )
{ {
int side = action->data().toInt(); 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(); int size = active_popup_client->clientGroup()->clients().count();
if( side == 0 ) // Left if( side == 0 ) // Left
{ {
@ -353,7 +353,7 @@ void Workspace::switchToTabPopupAboutToShow()
int index = 2; int index = 2;
foreach( Client* c, active_popup_client->clientGroup()->clients() ) 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 = switch_to_tab_popup->addAction( c->caption() );
action->setData( index ); action->setData( index );