]> git.eshelyaron.com Git - emacs.git/commit
Respect new DND options when dragging to ourselves on Haiku
authorPo Lu <luangruo@yahoo.com>
Tue, 5 Apr 2022 00:54:03 +0000 (00:54 +0000)
committerPo Lu <luangruo@yahoo.com>
Tue, 5 Apr 2022 00:54:03 +0000 (00:54 +0000)
commit1e1a66831bf1d8ca33b3ad37d23211fa98d92e63
treebf2e05c9bac5b72f1bab68ab15738649b3e75467
parent74100997b3853a6c00c60e1998ed5a86a9a01bc3
Respect new DND options when dragging to ourselves on Haiku

* lisp/mouse.el (mouse-drag-and-drop-region): Allow dragging to
the current frame if we know `return-frame' doesn't work.
* lisp/term/haiku-win.el (haiku-dnd-drag-handler): New function.
* src/haiku_support.cc (MouseMoved): Don't send drag motion
events for the drag frame.
* src/haikuselect.c (haiku_note_drag_motion_1)
(haiku_note_drag_motion_2, haiku_note_drag_motion): New
functions.
(syms_of_haikuselect): New variable `haiku-drag-track-function'.
* src/haikuterm.c (haiku_read_socket): Note mouse motion in that
case.q
* src/haikuterm.h: Update prototypes.
lisp/mouse.el
lisp/term/haiku-win.el
src/haiku_support.cc
src/haikuselect.c
src/haikuterm.c
src/haikuterm.h