1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-16 09:50:25 +00:00

Honor make-pointer-invisible on macOS

* src/nsterm.m ([EmacsView keyDown:]): Call
[NSCursor setHiddenUntilMouseMoves:] with the correct argument, depending on
variable make-pointer-invisible.
This commit is contained in:
bug-gnu-emacs@gnu.org 2020-09-19 20:31:05 +02:00 committed by Alan Third
parent 2e68cee653
commit 091cb97a2a
2 changed files with 4 additions and 1 deletions

View File

@ -1524,6 +1524,9 @@ To turn this on, set the variable 'w32-use-native-image-API' to a
non-nil value. Please report any bugs you find while using the native
image API via 'M-x report-emacs-bug'.
---
** The variable 'make-pointer-invisible' is now honored on macOS.
----------------------------------------------------------------------
This file is part of GNU Emacs.

View File

@ -6449,7 +6449,7 @@ most recently updated (I guess), which is not the correct one. */
if (nsEvArray == nil)
nsEvArray = [[NSMutableArray alloc] initWithCapacity: 1];
[NSCursor setHiddenUntilMouseMoves: YES];
[NSCursor setHiddenUntilMouseMoves:! NILP (Vmake_pointer_invisible)];
if (hlinfo->mouse_face_hidden && FIXNUMP (Vmouse_highlight))
{