From acfc2c0b31813e300962da4a0258e76a722f4238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 13 Jan 2011 20:36:23 +0000 Subject: [PATCH] Include the desktop window from active screen in alt+tab. For the tabbox mode to include the desktop window a random desktop window was picked in a multi screen setup. Now the desktop window of the current active screen is picked. CCBUG: 262139 svn path=/trunk/KDE/kdebase/workspace/; revision=1214264 --- tabbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabbox.cpp b/tabbox.cpp index f66ce2b707..8a093d7715 100644 --- a/tabbox.cpp +++ b/tabbox.cpp @@ -197,7 +197,7 @@ TabBoxClient* TabBoxHandlerImpl::desktopClient() const { foreach( const Client* client, Workspace::self()->stackingOrder() ) { - if( client->isDesktop() && client->isOnCurrentDesktop() ) + if( client->isDesktop() && client->isOnCurrentDesktop() && client->screen() == Workspace::self()->activeScreen() ) { return client->tabBoxClient(); }