Backport rev 1214264: 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=/branches/KDE/4.6/kdebase/workspace/; revision=1214265
This commit is contained in:
Martin Gräßlin 2011-01-13 20:40:30 +00:00
parent 1d9d989735
commit f5da52f78b

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