diff options
author | Po Lu <luangruo@yahoo.com> | 2022-02-26 06:56:31 +0000 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-02-26 06:57:00 +0000 |
commit | 974c44414a1bd3dced0f77ce65c60a41e0f25a1a (patch) | |
tree | e9c8ccfbdcf8a9ce28cf37abcad8911312aaf097 /lisp/emacs-lisp/cl-print.el | |
parent | c215158756b127f77a1cf298e80529e2589a23b4 (diff) | |
download | emacs-974c44414a1bd3dced0f77ce65c60a41e0f25a1a.tar.gz emacs-974c44414a1bd3dced0f77ce65c60a41e0f25a1a.tar.bz2 emacs-974c44414a1bd3dced0f77ce65c60a41e0f25a1a.zip |
Improve scroll bar button handling on Haiku
* src/haiku_io.c (haiku_len): Add `SCROLL_BAR_PART_EVENT'.
* src/haiku_support.cc (class EmacsScrollBar): New fields
`dragging' and `current_state', along with `old_value' and
`current_part'.
(EmacsScrollBar): Set horizontal flag to `horizontal_p'.
(MessageReceived): Set old_value when receiving
SCROLL_BAR_UPDATE message.
(ValueChanged): Don't allow scroll bar values to change while
dragging.
(MouseUp, MouseDown): Calculate button under mouse and act
accordingly.
* src/haiku_support.h (enum haiku_event_type): New event
`SCROLL_BAR_PART_EVENT'.
(enum haiku_scroll_bar_part): New enumerator.
(struct haiku_scroll_bar_part_event): New struct.
* src/haikuterm.c (haiku_read_socket): Handle
SCROLL_BAR_PART_EVENTs.
Diffstat (limited to 'lisp/emacs-lisp/cl-print.el')
0 files changed, 0 insertions, 0 deletions