]> git.eshelyaron.com Git - emacs.git/commit
Improve drag atom computation
authorPo Lu <luangruo@yahoo.com>
Thu, 16 Jun 2022 04:49:07 +0000 (12:49 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 16 Jun 2022 04:49:52 +0000 (12:49 +0800)
commit6dd4c5b953b666a9079910665d770ed56ecbf65d
tree3f84fb7df70014cb4552d90e7c49e572f79f6b67
parent343482d641511b54aa0444791770b4ea70d27cc7
Improve drag atom computation

* src/xterm.c (xm_get_drag_window): Avoid leak if error occured
creating drag window.  Also use StructureNotifyMask instead of
ButtonPressMask.
(xm_get_drag_atom_1): Update.  Make EMACS_DRAG_ATOM a list of
atoms and use the first one that isn't currently owned.
(xm_get_drag_atom): Stop owning selection here.
(xm_setup_drag_info): Record chosen atom.
(x_dnd_cleanup_drag_and_drop, x_dnd_begin_drag_and_drop)
(x_dnd_update_state, handle_one_xevent, x_connection_closed):
Use chosen atom.
* src/xterm.h (struct x_display_info): New field
`motif_drag_atom_time'.
src/xterm.c
src/xterm.h