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:
parent
b7cb301deb
commit
152be60cc0
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue