Subject: bug#43520: closed (Re: bug#43520: 27.1; [PATCH] Add support for make-pointer-invisible on macOS)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 19 Sep 2020 19:17:02 +0000

Your bug report

#43520: 27.1; [PATCH] Add support for make-pointer-invisible on macOS

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
43520: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=43520
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#43520: 27.1; [PATCH] Add support for make-pointer-invisible on macOS
From: Alan Third <[email-masked]>
To: Daniel MartÃ­n <[email-masked]>
Cc: [email-masked]
Date: Sat, 19 Sep 2020 20:16:35 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

On Sat, Sep 19, 2020 at 08:31:05PM +0200, Daniel MartÃ?Â­n via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote:
> 
> The following patch adds proper support for make-pointer-invisible on
> macOS.

Thanks, I've moved the NEWS entry to the non-free OS section and
pushed it to master as 091cb97a2a4abba2615a5035d2ce26a6ee06d245.

-- 
Alan Third

Subject: 27.1; [PATCH] Add support for make-pointer-invisible on macOS
From: Daniel Martín <[email-masked]>
To: [email-masked]
Date: Sat, 19 Sep 2020 20:31:05 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

The following patch adds proper support for make-pointer-invisible on
macOS.

Thanks.

>From ad92732d28a484d538a4e98331878a0f60e07fd2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Mart=C3=ADn?= <[email-masked]>
Date: Sat, 19 Sep 2020 20:19:57 +0200
Subject: [PATCH] Honor make-pointer-invisible on macOS

* src/nsterm.m: Call [NSCursor setHiddenUntilMouseMoves:] with the
correct argument, depending on variable make-pointer-invisible.
---
 etc/NEWS     | 3 +++
 src/nsterm.m | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/etc/NEWS b/etc/NEWS
index 26aa030391..363d843265 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -145,6 +145,9 @@ your init file:
     (setq frame-title-format '(multiple-frames "%b"
                               ("" invocation-name "@" system-name)))
 
+---
+** The variable 'make-pointer-invisible' is now honored on macOS.
+
 
 * Editing Changes in Emacs 28.1
 
diff --git a/src/nsterm.m b/src/nsterm.m
index 26059ab67c..f6a36c8fdc 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -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))
     {
-- 
2.28.0