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
This commit is contained in:
Martin Gräßlin 2011-01-13 20:36:23 +00:00
parent 628ceadb99
commit acfc2c0b31

View file

@ -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();
}