From fa351403ef7a9ec65a6ca859f66a6616dba5e8cc Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 24 May 2024 17:40:02 +0300 Subject: [PATCH] Ignore button release events when double clicking One could check that the double click timer is still active. --- src/window.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/window.cpp b/src/window.cpp index c9800ee460..1d6c74928f 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -2793,10 +2793,6 @@ bool Window::processDecorationButtonPress(QMouseEvent *event, bool ignoreMenu) void Window::processDecorationButtonRelease(QMouseEvent *event) { - if (event->isAccepted()) { - invalidateDecorationDoubleClickTimer(); // click was for the deco and shall not init a doubleclick - } - if (event->buttons() == Qt::NoButton) { setInteractiveMoveResizePointerButtonDown(false); stopDelayedInteractiveMoveResize();