]> git.eshelyaron.com Git - emacs.git/commit
Improve safety of haiku-drag-message
authorPo Lu <luangruo@yahoo.com>
Wed, 6 Apr 2022 05:54:31 +0000 (05:54 +0000)
committerPo Lu <luangruo@yahoo.com>
Wed, 6 Apr 2022 05:54:31 +0000 (05:54 +0000)
commit78ecd67888566167fb4c881d8350f611fa039649
tree7a53184f780c47732c3782c0f69fcc8e8c7420a4
parenta6f7d0f4e38555080bbdb45dbb414e15d206f548
Improve safety of haiku-drag-message

* lisp/term/haiku-win.el (haiku-drag-and-drop): Ignore
placeholder message.
* src/frame.c (delete_frame): Prevent deleting drop source frame
on Haiku.
* src/haiku_support.cc (RELEASE_NOW, CANCEL_DROP): New message
types.
(class EmacsView, MessageReceived): Handle new message types.
(be_drag_message): Drag CANCEL_DROP message on quit; also send
RELEASE_NOW to view if quitting.

* src/haikuselect.c (syms_of_haikuselect)
(haiku_unwind_drag_message): Clear new frame variable.
(Fhaiku_drag_message): Set new frame variable.
* src/haikuterm.h: Update prototypes.
lisp/term/haiku-win.el
src/frame.c
src/haiku_support.cc
src/haikuselect.c
src/haikuterm.h