aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2013-01-21 23:29:55 (GMT)
committerThomas Lübking <thomas.luebking@gmail.com>2013-01-23 20:27:43 (GMT)
commitaacfda87c5dd6d1ddc91c57c829d19afdbaba8ef (patch)
treee77b1c58667ee61fcf6e1cee01c993c81ce2a6e3
parentefc3922d0be8d3a232903185c8002b090abfadaf (diff)
don't stopMousePolling when not started
REVIEW: 108536 BUG: 313655
-rw-r--r--kwin/effects/mouseclick/mouseclick.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/kwin/effects/mouseclick/mouseclick.cpp b/kwin/effects/mouseclick/mouseclick.cpp
index 0b76074..7f13a20 100644
--- a/kwin/effects/mouseclick/mouseclick.cpp
+++ b/kwin/effects/mouseclick/mouseclick.cpp
@@ -68,7 +68,8 @@ MouseClickEffect::~MouseClickEffect()
if (!s_XrBuffer.isNull())
XFreePixmap(display(), s_XrBuffer.handle());
#endif
- effects->stopMousePolling();
+ if (m_enabled)
+ effects->stopMousePolling();
foreach (const MouseEvent* click, m_clicks) {
delete click;
}