diff options
| author | Charles A. Roelli | 2017-05-18 21:31:46 +0200 |
|---|---|---|
| committer | Alan Third | 2017-05-21 00:09:41 +0100 |
| commit | 7e5a8cdceb408077df78b1ea810b1f5d4657303d (patch) | |
| tree | 0b8ec76811bc1e66aa3fbfa5ad594a3e6cbb302a /etc | |
| parent | c969b3997168de2bbe781fbcb08b67b15eddc02d (diff) | |
| download | emacs-7e5a8cdceb408077df78b1ea810b1f5d4657303d.tar.gz emacs-7e5a8cdceb408077df78b1ea810b1f5d4657303d.zip | |
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.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -1321,6 +1321,9 @@ This is in contrast to the default action on POSIX Systems, where it | |||
| 1321 | causes the receiving process to terminate with a core dump if no | 1321 | causes the receiving process to terminate with a core dump if no |
| 1322 | debugger has been attached to it. | 1322 | debugger has been attached to it. |
| 1323 | 1323 | ||
| 1324 | ** `set-mouse-position' and `set-mouse-absolute-pixel-position' work | ||
| 1325 | on macOS. | ||
| 1326 | |||
| 1324 | 1327 | ||
| 1325 | ---------------------------------------------------------------------- | 1328 | ---------------------------------------------------------------------- |
| 1326 | This file is part of GNU Emacs. | 1329 | This file is part of GNU Emacs. |