Paint desktop windows only once in multi screen setups as we know that a desktop window is bound to a screen and there is one desktop window per screen.
svn path=/trunk/KDE/kdebase/workspace/; revision=891952
This commit is contained in:
parent
09b5e45bd4
commit
2387e701f6
1 changed files with 6 additions and 0 deletions
|
@ -216,6 +216,9 @@ void DesktopGridEffect::paintWindow( EffectWindow* w, int mask, QRegion region,
|
|||
|
||||
for( int screen = 0; screen < effects->numScreens(); screen++ )
|
||||
{
|
||||
// Assume desktop windows can never be on two screens at once (Plasma makes one window per screen)
|
||||
if( w->isDesktop() )
|
||||
screen = w->screen();
|
||||
QRect screenGeom = effects->clientArea( ScreenArea, screen, 0 );
|
||||
|
||||
// Display all quads on the same screen on the same pass
|
||||
|
@ -260,6 +263,9 @@ void DesktopGridEffect::paintWindow( EffectWindow* w, int mask, QRegion region,
|
|||
PaintClipper pc( effects->clientArea( ScreenArea, screen, 0 ));
|
||||
effects->paintWindow( w, mask, region, d );
|
||||
}
|
||||
// Assume desktop windows can never be on two screens at once (Plasma makes one window per screen)
|
||||
if( w->isDesktop() )
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue