Do not activate InvertEffect per window if there is no active window

BUG: 314593
FIXED-IN: 4.10.1
REVIEW: 108828
This commit is contained in:
Martin Gräßlin 2013-02-07 12:18:17 +01:00
parent ce5e47be5d
commit 2f02157a0f

View file

@ -146,6 +146,9 @@ void InvertEffect::toggleScreenInversion()
void InvertEffect::toggleWindow()
{
if (!effects->activeWindow()) {
return;
}
if (!m_windows.contains(effects->activeWindow()))
m_windows.append(effects->activeWindow());
else