Hide the desktop windows from other virtual desktops in presentwindows. That can happen when option activity per desktop is set.

BUG: 212065

svn path=/trunk/KDE/kdebase/workspace/; revision=1042342
This commit is contained in:
Martin Gräßlin 2009-10-29 17:02:41 +00:00
parent 58cee32800
commit e001fdff33

View file

@ -281,6 +281,10 @@ void PresentWindowsEffect::prePaintWindow( EffectWindow *w, WindowPrePaintData &
w->enablePainting( EffectWindow::PAINT_DISABLED_BY_DELETE );
}
// desktop windows on other desktops (Plasma activity per desktop) should not be painted
if( w->isDesktop() && !w->isOnCurrentDesktop() )
w->disablePainting( EffectWindow::PAINT_DISABLED_BY_DESKTOP );
if( m_motionManager.isManaging( w ))
data.setTransformed(); // We will be moving this window
}