diff --git a/effects/mouseclick/mouseclick.cpp b/effects/mouseclick/mouseclick.cpp index 0b76074a6d..7f13a2045d 100644 --- a/effects/mouseclick/mouseclick.cpp +++ b/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; }