summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbug-gnu-emacs@gnu.org <bug-gnu-emacs@gnu.org>2020-09-19 20:31:05 +0200
committerAlan Third <alan@idiocy.org>2020-09-19 20:11:53 +0100
commit091cb97a2a4abba2615a5035d2ce26a6ee06d245 (patch)
tree9b50714dc937ae35f1b6af17cb240bc8ac5d4b5c
parent2e68cee6532569d26f5c20f1c1fb9d337c5d65f8 (diff)
downloademacs-091cb97a2a4abba2615a5035d2ce26a6ee06d245.tar.gz
emacs-091cb97a2a4abba2615a5035d2ce26a6ee06d245.tar.bz2
emacs-091cb97a2a4abba2615a5035d2ce26a6ee06d245.zip
Honor make-pointer-invisible on macOS
* src/nsterm.m ([EmacsView keyDown:]): Call [NSCursor setHiddenUntilMouseMoves:] with the correct argument, depending on variable make-pointer-invisible.
-rw-r--r--etc/NEWS3
-rw-r--r--src/nsterm.m2
2 files changed, 4 insertions, 1 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 6d27f769e08..458f93379af 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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.
diff --git a/src/nsterm.m b/src/nsterm.m
index 26059ab67cd..f6a36c8fdcb 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -6449,7 +6449,7 @@ not_in_argv (NSString *arg)
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))
{