From c78805d3ed5144a23cbe8b1b29f4ea7b084b53d7 Mon Sep 17 00:00:00 2001 From: Humdinger Date: Fri, 22 Dec 2023 14:40:18 +0100 Subject: [PATCH] Revert fix for multi-clicks in Tracker Reverts part of 8d0464e. That fix resulted in menus collapsing as soon as the mouse is moved. Reverting this part fixes this, at the cost of double-clicks not working in Tracker. Until fixed, this is acceptable, because you can just hit ENTER to open a selected file. And ALT+CTRL+H hide a window, same as a double-click on a window tab. Fixes #3 Reopens #1 --- src/AboutHelpWin.cpp | 0 src/KeyCursorDevice.cpp | 4 ++++ 2 files changed, 4 insertions(+) mode change 100755 => 100644 src/AboutHelpWin.cpp diff --git a/src/AboutHelpWin.cpp b/src/AboutHelpWin.cpp old mode 100755 new mode 100644 diff --git a/src/KeyCursorDevice.cpp b/src/KeyCursorDevice.cpp index 5d5fcb2..6414323 100644 --- a/src/KeyCursorDevice.cpp +++ b/src/KeyCursorDevice.cpp @@ -263,6 +263,10 @@ KeyCursorDevice::ProcessMessage(int32 what, int32 data) case BUTTON_UP: { + fClickedButton = 0; + fLastClick = 0; + fClickCount = 0; + BMessage* event = new BMessage(B_MOUSE_UP); event->AddInt64("when", now); event->AddInt32("x", 0);