From 6ab04b59b14d56468fcb28a142278fb1b1666b86 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 13 Mar 2022 12:53:01 +0000 Subject: [PATCH] Fix pointer event tracking on top of Haiku scroll bars * src/haiku_support.cc (MouseDown): Set correct mouse event mask in case the scroll bar widget decides to not do that. --- src/haiku_support.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/haiku_support.cc b/src/haiku_support.cc index a14600cb338..9c9aa7f35bf 100644 --- a/src/haiku_support.cc +++ b/src/haiku_support.cc @@ -1817,6 +1817,9 @@ public: rq.window = Window (); rq.scroll_bar = this; + SetMouseEventMask (B_POINTER_EVENTS, (B_SUSPEND_VIEW_FOCUS + | B_LOCK_WINDOW_FOCUS)); + haiku_write (SCROLL_BAR_DRAG_EVENT, &rq); out: -- 2.39.5