]> git.eshelyaron.com Git - emacs.git/commitdiff
Honor make-pointer-invisible on macOS
authorbug-gnu-emacs@gnu.org <bug-gnu-emacs@gnu.org>
Sat, 19 Sep 2020 18:31:05 +0000 (20:31 +0200)
committerAlan Third <alan@idiocy.org>
Sat, 19 Sep 2020 19:11:53 +0000 (20:11 +0100)
* src/nsterm.m ([EmacsView keyDown:]): Call
[NSCursor setHiddenUntilMouseMoves:] with the correct argument, depending on
variable make-pointer-invisible.

etc/NEWS
src/nsterm.m

index 6d27f769e0862f55f75521ee5db9b6cbbf01e47d..458f93379af50ebb12163d1141669501361a2197 100644 (file)
--- 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.
+
 \f
 ----------------------------------------------------------------------
 This file is part of GNU Emacs.
index 26059ab67cda3f58b7013955e6afcbc75fb33a6a..f6a36c8fdcb55442c6e9e15bb6e771e282cdbdf4 100644 (file)
@@ -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))
     {