]> git.eshelyaron.com Git - emacs.git/commit
Fix generated drag-and-drop mouse rectangles
authorPo Lu <luangruo@yahoo.com>
Fri, 15 Jul 2022 08:19:41 +0000 (16:19 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 15 Jul 2022 08:19:52 +0000 (16:19 +0800)
commit200938b95d1b73d03ce758e69a69d4fb198be4e8
tree16d187bd8747d8bed5dd84c58cef71c7b2d35498
parentffe4a5dac0dbc9fd85064200ed7b46b4ab3b910a
Fix generated drag-and-drop mouse rectangles

* lisp/x-dnd.el (x-dnd-get-drop-width-height): Handle window
width and height correctly.  Remove unused parameter.
(x-dnd-after-move-frame): New function.
(move-frame-functions): Add new hook.
(x-dnd-compute-root-window-position): New function.
(x-dnd-get-drop-x-y): Use that instead of `left' and `top'
parameters, which include the title bar.
(x-dnd-handle-xdnd): Update accordingly.
* src/xfns.c (Fx_translate_coordinates): New function.
(syms_of_xfns): New defsym.
lisp/x-dnd.el
src/xfns.c