Ignore button release events when double clicking

One could check that the double click timer is still active.
This commit is contained in:
Vlad Zahorodnii 2024-05-24 17:40:02 +03:00
parent a76ae07ee1
commit fa351403ef

View file

@ -2793,10 +2793,6 @@ bool Window::processDecorationButtonPress(QMouseEvent *event, bool ignoreMenu)
void Window::processDecorationButtonRelease(QMouseEvent *event) 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) { if (event->buttons() == Qt::NoButton) {
setInteractiveMoveResizePointerButtonDown(false); setInteractiveMoveResizePointerButtonDown(false);
stopDelayedInteractiveMoveResize(); stopDelayedInteractiveMoveResize();