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:
parent
ce5e47be5d
commit
2f02157a0f
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue