Do not activate the effect with nothing to show.
svn path=/trunk/KDE/kdebase/workspace/; revision=804228
This commit is contained in:
parent
4851bff561
commit
f9ce0427e8
1 changed files with 7 additions and 2 deletions
|
@ -304,8 +304,6 @@ void PresentWindowsEffect::setActive(bool active)
|
||||||
if( mActivated )
|
if( mActivated )
|
||||||
{
|
{
|
||||||
mWindowData.clear();
|
mWindowData.clear();
|
||||||
effectActivated();
|
|
||||||
mActiveness = 0;
|
|
||||||
windowFilter.clear();
|
windowFilter.clear();
|
||||||
mWindowsToPresent.clear();
|
mWindowsToPresent.clear();
|
||||||
const EffectWindowList& originalwindowlist = effects->stackingOrder();
|
const EffectWindowList& originalwindowlist = effects->stackingOrder();
|
||||||
|
@ -320,6 +318,13 @@ void PresentWindowsEffect::setActive(bool active)
|
||||||
continue;
|
continue;
|
||||||
mWindowsToPresent.append(window);
|
mWindowsToPresent.append(window);
|
||||||
}
|
}
|
||||||
|
if( mWindowsToPresent.isEmpty())
|
||||||
|
{
|
||||||
|
mActivated = false; // don't activate with nothing to show
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
mActiveness = 0;
|
||||||
|
effectActivated();
|
||||||
rearrangeWindows();
|
rearrangeWindows();
|
||||||
setHighlightedWindow( effects->activeWindow());
|
setHighlightedWindow( effects->activeWindow());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue