all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Unknown <unknown@unknown.invalid>
To: 43520@debbugs.gnu.org
Subject: bug#43520: 27.1; [PATCH] Add support for make-pointer-invisible on macOS
Date: Sat, 19 Sep 2020 20:31:05 +0200	[thread overview]
Message-ID: <m1sgbdzkie.fsf@yahoo.es> (raw)
In-Reply-To: m1sgbdzkie.fsf.ref@yahoo.es

[-- Attachment #1: Type: text/plain, Size: 88 bytes --]


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

Thanks.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Honor-make-pointer-invisible-on-macOS.patch --]
[-- Type: text/x-patch, Size: 1322 bytes --]

From ad92732d28a484d538a4e98331878a0f60e07fd2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Mart=C3=ADn?= <mardani29@yahoo.es>
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.
+
 \f
 * 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


       reply	other threads:[~2020-09-19 18:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m1sgbdzkie.fsf.ref@yahoo.es>
2020-09-19 18:31 ` Unknown [this message]
2020-09-19 19:16   ` bug#43520: 27.1; [PATCH] Add support for make-pointer-invisible on macOS Alan Third

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1sgbdzkie.fsf@yahoo.es \
    --to=unknown@unknown.invalid \
    --cc=43520@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.