]> git.eshelyaron.com Git - emacs.git/commit
Don't rely on XdndAware on frames for dropping to work
authorPo Lu <luangruo@yahoo.com>
Sun, 12 Jun 2022 01:32:30 +0000 (09:32 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 12 Jun 2022 01:32:33 +0000 (09:32 +0800)
commit0adbb21ece4af494e7050281dc022d5f7a11f196
treec024eccd21178d0bd5260f5498c6712388ed99f2
parent98365c7b1e1e1d3d5f7185f2d4a2baa1c65b4540
Don't rely on XdndAware on frames for dropping to work

* src/xterm.c (x_dnd_get_target_window): New parameter
WAS_FRAME.  If toplevel is a frame, set it and clear proto and
motif.
(x_dnd_send_enter, x_dnd_send_position, x_dnd_send_leave)
(x_dnd_send_drop): Remove special-cased self dropping code.
(x_dnd_note_self_position, x_dnd_note_self_drop): New functions.

(x_dnd_begin_drag_and_drop, x_dnd_update_state):
(handle_one_xevent): Handle our own frames using those functions
instead.
src/xterm.c