]> git.eshelyaron.com Git - emacs.git/commit
Fix macOS mouse movement
authorCharles A. Roelli <charles@aurox.ch>
Thu, 18 May 2017 19:31:46 +0000 (21:31 +0200)
committerAlan Third <alan@idiocy.org>
Sat, 20 May 2017 23:09:41 +0000 (00:09 +0100)
commit7e5a8cdceb408077df78b1ea810b1f5d4657303d
tree0b8ec76811bc1e66aa3fbfa5ad594a3e6cbb302a
parentc969b3997168de2bbe781fbcb08b67b15eddc02d
Fix macOS mouse movement

* lisp/frame.el (ns-set-mouse-absolute-pixel-position): New
function (Lisp).
(set-mouse-absolute-pixel-position): Change it to call
`ns-set-mouse-absolute-pixel-position' on macOS.
* src/nsfns.m (Fns_set_mouse_absolute_pixel_position): New
function.
* src/nsterm.h (NS_PARENT_WINDOW_TOP_POS): Use the primary
screen's height as a base for calculating global coordinates.
* src/nsterm.m (frame_set_mouse_pixel_position): Fix it in macOS.
* test/lisp/mouse-tests.el (bug26816-mouse-frame-movement): Test
movement of mouse relative to frame.
etc/NEWS
lisp/frame.el
src/nsfns.m
src/nsterm.h
src/nsterm.m
test/lisp/mouse-tests.el