]> git.eshelyaron.com Git - emacs.git/commit
Use coordinates provided by DND messages if available
authorPo Lu <luangruo@yahoo.com>
Tue, 14 Jun 2022 01:41:59 +0000 (09:41 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 14 Jun 2022 01:41:59 +0000 (09:41 +0800)
commit907f3a4f8d83c228a3be3772a3cb7d5079261752
tree34117fb2bd59e1cdf3b4d55023491b22b88e79d9
parent915b34d2800fe0014b12eda0bbf5def976c14c32
Use coordinates provided by DND messages if available

This avoids an extra sync, which matters when dropping onto
Emacs running over a slow connection.

* src/xselect.c (x_handle_dnd_message): New args
`root_window_coords', `root_x' and `root_y'.
* src/xterm.c (x_coords_from_dnd_message): New function.
(handle_one_xevent): Pass root window coordinates to
x_handle_dnd_message.
* src/xterm.h: Update prototypes.
src/xselect.c
src/xterm.c
src/xterm.h