From 2f02157a0fc387b85058881a0668cffe748d2ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 7 Feb 2013 12:18:17 +0100 Subject: [PATCH] Do not activate InvertEffect per window if there is no active window BUG: 314593 FIXED-IN: 4.10.1 REVIEW: 108828 --- effects/invert/invert.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/effects/invert/invert.cpp b/effects/invert/invert.cpp index 04b6475e2d..a2075b0702 100644 --- a/effects/invert/invert.cpp +++ b/effects/invert/invert.cpp @@ -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