Fix double click on window deco if tripple clicked

Patch by Thomas Lübking which got lost in bugs.kde.org.

BUG: 361241
FIXED-IN: 5.10.3
This commit is contained in:
Martin Flöser 2017-06-22 06:52:57 +02:00
parent b7cb301deb
commit 152be60cc0

View file

@ -1495,7 +1495,7 @@ bool AbstractClient::processDecorationButtonPress(QMouseEvent *event, bool ignor
const qint64 interval = m_decoration.doubleClickTimer.elapsed(); const qint64 interval = m_decoration.doubleClickTimer.elapsed();
m_decoration.doubleClickTimer.invalidate(); m_decoration.doubleClickTimer.invalidate();
if (interval > QGuiApplication::styleHints()->mouseDoubleClickInterval()) { if (interval > QGuiApplication::styleHints()->mouseDoubleClickInterval()) {
m_decoration.doubleClickTimer.invalidate(); // expired -> new first click and pot. init m_decoration.doubleClickTimer.start(); // expired -> new first click and pot. init
} else { } else {
Workspace::self()->performWindowOperation(this, options->operationTitlebarDblClick()); Workspace::self()->performWindowOperation(this, options->operationTitlebarDblClick());
dontMoveResize(); dontMoveResize();