]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix pointer event tracking on top of Haiku scroll bars
authorPo Lu <luangruo@yahoo.com>
Sun, 13 Mar 2022 12:53:01 +0000 (12:53 +0000)
committerPo Lu <luangruo@yahoo.com>
Sun, 13 Mar 2022 12:57:56 +0000 (12:57 +0000)
* 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

index a14600cb33884141ac0cc087f017b4ab768df463..9c9aa7f35bf51dfccf2340e17091446d3cc7aead 100644 (file)
@@ -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: