Commit aacfda87 authored by Thomas Lübking's avatar Thomas Lübking
Browse files

don't stopMousePolling when not started

REVIEW: 108536
BUG: 313655
parent efc3922d
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment