]> git.eshelyaron.com Git - emacs.git/commit
Implement wheel movement during DND on Haiku
authorPo Lu <luangruo@yahoo.com>
Wed, 20 Jul 2022 07:37:24 +0000 (07:37 +0000)
committerPo Lu <luangruo@yahoo.com>
Wed, 20 Jul 2022 07:37:41 +0000 (07:37 +0000)
commit83753d05ebb784d1d59687f3f488721f8a2edbb2
tree54973449ac07c0b151e1be9d103a38a38c309c37
parent32db1682903a3a6a59f81426ab699531f08acd2f
Implement wheel movement during DND on Haiku

* lisp/term/haiku-win.el (haiku-dnd-wheel-count): New defvar.
(haiku-note-wheel-click, haiku-handle-drag-wheel): New
functions.

* src/haiku_support.cc (EmacsWindow): Get rid of window ID
logic.
(MessageReceived, MouseMoved, be_drag_message): Use thread ID to
identify windows instead of window ID.

* src/haikuselect.c (Fhaiku_drag_message): Record whether or not
the DND frame is a valid drop target.
(haiku_note_drag_wheel): New function.
(syms_of_haikuselect): New defvar.

* src/haikuterm.c (haiku_read_socket): Call
`haiku_note_drag_wheel' when appropriate.
* src/haikuterm.h: Update prototypes.
lisp/term/haiku-win.el
src/haiku_support.cc
src/haikuselect.c
src/haikuterm.c
src/haikuterm.h