]> git.eshelyaron.com Git - emacs.git/commit
Fix handling of scroll bar clicks on Haiku
authorPo Lu <luangruo@yahoo.com>
Sun, 12 Jun 2022 13:04:19 +0000 (13:04 +0000)
committerPo Lu <luangruo@yahoo.com>
Sun, 12 Jun 2022 13:04:37 +0000 (13:04 +0000)
commit6263f586b87a952e00103a82af1dd0360c1a238d
tree01d16842afa05d06b68dc1c6ede5f49c609d23bc
parentbab1d412801eead715f1465131aa3734558f35ab
Fix handling of scroll bar clicks on Haiku

* src/haiku_support.cc (class EmacsView, BasicMouseDown)
(BasicMouseUp): Move MouseDown and MouseUp here.  New parameter
`scroll_bar'.
(MouseDown, MouseUp): Call basic variants.

(class EmacsScrollBar): New field `parent'.
(BScrollBar_make_for_view): Rename to
`be_create_scroll_bar_for_view'.
* src/haiku_support.h (struct haiku_button_event): New field
`scroll_bar'.
* src/haikuterm.c (haiku_scroll_bar_from_widget): Handle NULL
widget.
(haiku_scroll_bar_create): Update calls.
(haiku_mouse_position): Fix scroll bar part.
(haiku_read_socket): Handle button events on scroll bars as
scroll bar click events.
src/haiku_support.cc
src/haiku_support.h
src/haikuterm.c