]> git.eshelyaron.com Git - emacs.git/commit
Fix problems when dragging frames with the mouse
authorMartin Rudalics <rudalics@gmx.at>
Mon, 6 Apr 2020 07:46:24 +0000 (09:46 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Mon, 6 Apr 2020 07:46:24 +0000 (09:46 +0200)
commit981cea9b624f61de3bc84226d19303ff3f8cbd8b
treeebdf5604f5ae159e200a8423a7f293f46bd94dd5
parent24c3fa96077a5fec6d8ba65d7c49ff1a731be32f
Fix problems when dragging frames with the mouse

Re-implement 'mouse-drag-frame' via two new functions -
'mouse-drag-frame-resize' and 'mouse-drag-frame-move'.  This is
needed because with some toolkits the notifications for frame
movement and resizing arrive asynchronously, breaking any
calculations using intermediate frame sizes and positions.

* lisp/mouse.el (mouse-drag-mode-line, mouse-drag-left-edge)
(mouse-drag-top-left-corner, mouse-drag-top-edge)
(mouse-drag-top-right-corner, mouse-drag-right-edge)
(mouse-drag-bottom-right-corner, mouse-drag-bottom-edge)
(mouse-drag-bottom-left-corner): Call 'mouse-drag-frame-resize'
instead of 'mouse-drag-frame'.
(mouse-drag-frame): Split into two new functions -
'mouse-drag-frame-move' and 'mouse-drag-frame-resize'.
(mouse-drag-frame-resize, mouse-drag-frame-move): New functions
to implement functionality of the removed 'mouse-drag-frame'.
lisp/mouse.el