From: "Gerd Möllmann" <gerd.moellmann@gmail.com>
To: 69525@debbugs.gnu.org
Cc: Alan Third <alan@idiocy.org>
Subject: bug#69525: 30.0.50; MacOS: New warnings on stderr
Date: Fri, 26 Jul 2024 11:56:21 +0200 [thread overview]
Message-ID: <m21q3geat6.fsf@pro2.fritz.box> (raw)
In-Reply-To: <m2zfvfs2zh.fsf@Pro.fritz.box> ("Gerd Möllmann"'s message of "Sun, 03 Mar 2024 17:18:42 +0100")
[-- Attachment #1: Type: text/plain, Size: 1298 bytes --]
Gerd Möllmann <gerd.moellmann@gmail.com> writes:
> The following warnings are printed to stderr, which I haven't seen
> previously. Maybe canBecomeKeyWindow should be implemented?
>
> 2024-03-03 17:10:16.334906+0100 emacs[12805:61381] [Window] Warning: -[NSWindow makeKeyWindow] called on EmacsWindow 0x7f7d90a34030 which returned NO from -[NSWindow canBecomeKeyWindow].
> 2024-03-03 17:10:35.434255+0100 emacs[12805:61381] [CursorUI] -[TUINSCursorUIController activate:]: EmacsView doesn't conform to NSTextInputClient protocol.
> 2024-03-03 17:10:37.073109+0100 emacs[12805:61381] [Window] Warning: -[NSWindow makeKeyWindow] called on EmacsWindow 0x7f7d90a34030 which returned NO from -[NSWindow canBecomeKeyWindow].
> 2024-03-03 17:13:19.141805+0100 emacs[12805:61381] [CursorUI] -[TUINSCursorUIController activate:]: EmacsView doesn't conform to NSTextInputClient protocol.
>
> In GNU Emacs 30.0.50 (build 1, x86_64-apple-darwin23.3.0, NS
> appkit-2487.40 Version 14.3.1 (Build 23D60)) of 2024-03-01 built on
> Pro.fritz.box
> Repository revision: 862dfef88d8e62d12bac3ca2e44e035a2ff5b298
> Repository branch: master
> Windowing system distributor 'Apple', version 10.3.2487
> System Description: macOS 14.3.1
The attached patch fixes this for me, and seems logical.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: makeKeyWindow --]
[-- Type: text/x-patch, Size: 782 bytes --]
From c447ae1512cb274b5f7d47ffe479520c12392c67 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gerd=20M=C3=B6llmann?= <gerd@gnu.org>
Date: Fri, 26 Jul 2024 11:48:24 +0200
Subject: [PATCH] NS: prevent makeKeyWindow warnings (bug#69525)
* src/nsterm.m (ns_raise_frame): Don't makeKeyWindow if frame has
no_accept_focus set.
---
src/nsterm.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nsterm.m b/src/nsterm.m
index b9193f62e80..cd6ffabddde 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -1413,7 +1413,7 @@ -(void)remove
block_input ();
if (FRAME_VISIBLE_P (f))
{
- if (make_key)
+ if (make_key && !f->no_accept_focus)
[[view window] makeKeyAndOrderFront: NSApp];
else
[[view window] orderFront: NSApp];
--
2.45.2
next prev parent reply other threads:[~2024-07-26 9:56 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-03 16:18 bug#69525: 30.0.50; MacOS: New warnings on stderr Gerd Möllmann
2024-03-03 16:26 ` Eli Zaretskii
2024-03-03 17:33 ` Gerd Möllmann
2024-03-03 17:36 ` Gerd Möllmann
2024-03-03 18:06 ` Alan Third
2024-03-03 19:29 ` Gerd Möllmann
2024-03-04 9:12 ` Gerd Möllmann
2024-03-04 13:48 ` Gerd Möllmann
2024-03-04 14:43 ` Gerd Möllmann
2024-03-04 21:40 ` Alan Third
2024-03-05 4:38 ` Gerd Möllmann
2024-03-05 12:59 ` Alan Third
2024-03-05 14:31 ` Gerd Möllmann
2024-03-05 5:31 ` Gerd Möllmann
2024-07-26 10:33 ` Gerd Möllmann
2024-07-26 10:55 ` Eli Zaretskii
2024-07-26 11:02 ` Gerd Möllmann
2024-07-26 19:09 ` Alan Third
2024-07-26 19:24 ` Gerd Möllmann
2024-07-26 19:36 ` Alan Third
2024-07-27 3:56 ` Gerd Möllmann
2024-07-27 6:37 ` Eli Zaretskii
2024-07-30 6:00 ` Gerd Möllmann
2024-07-31 3:22 ` Gerd Möllmann
2024-07-31 13:51 ` Eli Zaretskii
2024-07-26 9:56 ` Gerd Möllmann [this message]
2024-07-26 18:38 ` Alan Third
2024-07-26 19:02 ` Gerd Möllmann
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m21q3geat6.fsf@pro2.fritz.box \
--to=gerd.moellmann@gmail.com \
--cc=69525@debbugs.gnu.org \
--cc=alan@idiocy.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).