GNU bug report logs

#78527 30.1; Mishaving new frame creation in MacOS on new desktop

version graph
PackageSource(s)Maintainer(s)
emacs PTS Buildd Popcon
Full log

Message #32 received at 78527@debbugs.gnu.org (full text, mbox, reply):

Received: (at 78527) by debbugs.gnu.org; 4 Jun 2025 03:53:06 +0000
From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 03 23:53:06 2025
Received: from localhost ([127.0.0.1]:45052 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1uMfBZ-0005YO-UT
	for submit@debbugs.gnu.org; Tue, 03 Jun 2025 23:53:06 -0400
Received: from mail-vs1-xe2e.google.com ([2607:f8b0:4864:20::e2e]:60712)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <aronov.boris@gmail.com>)
 id 1uMfBY-0005Xf-0L
 for 78527@debbugs.gnu.org; Tue, 03 Jun 2025 23:53:04 -0400
Received: by mail-vs1-xe2e.google.com with SMTP id
 ada2fe7eead31-4dfa2aeec86so2691466137.1
 for <78527@debbugs.gnu.org>; Tue, 03 Jun 2025 20:53:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1749009178; x=1749613978; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=jnRpxN9U9cBtxOfAkRMC92Uhtw4QC6I1zradsaKYQi8=;
 b=X8Ax1tvYLN2Kbhl7e2tsEtpkpw5rAXwCKKIWIuXx68X2AyaNVwGC6n5pyPpWG7/+gx
 +Bj4IHgRqV88O2doXgenHyV8MkG0SAgLG9qyUNFwDnoX1rgabdM0fdjsf5gC+gu7aObQ
 W4qzb7kbDwHquwxab6zz7/Vped+Bb4Nf84f8MPs+wCAsoe6vRqfnzoqhkI1gOXMa7Ybu
 b40GO9yMPdxZHGga1PWzkgofpPmW7WHBAeupNfWQL6+AP9X9hhihJRoFWbpSe86AvpQc
 OJurNXj53kizW5ikuLlOuq94pk/clLIXQN5DxR9Y/wNem4/6Tcx8sQ2CY4Q5Jrxh2G8g
 BH8g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1749009178; x=1749613978;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=jnRpxN9U9cBtxOfAkRMC92Uhtw4QC6I1zradsaKYQi8=;
 b=M2pYkiHqG08zVnJ8oCFu77uDaezuAFBaTv5+OcAqyAX/70mprlkcqB6CIuZVo9rdFD
 yAVTNEts4xsMZCVNTnWuoUBoxjB6boAAQgkqMfk+CrfWg6NRHOW9fpojwlLmrJZihSK6
 6OSCDA6NEgaS60MjVdWkL08gPvPI+if5HZHVuKylHx1/m3ruqjNfjkStyLje9yFaYbtp
 BeRrY69m9o1oIo6zuGqzhiwB4xK8pxh91E8suxkhJD4unaI2JTqHnqlXcovDjTLTvkEs
 2p30jXCbYKqBWr+adYICqZO/N9G23XDNR0qGe8gSs6cWSS/2GCpovO5YSE4RP3BiUh91
 L7uA==
X-Forwarded-Encrypted: i=1;
 AJvYcCW6zUO8Mq3gY1JcCGED3AwTP696BW9DTgEaljgd+6V3nWPSNDQyOT4Nyv3xUieA0N9+CJGXXQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YyWIyowhnxOVv04i8F9wJ2iNPE6ryNuzjjx4NdQtWtBy7S5Vt5D
 Us8HQEExAJd29Hf2zhCnmYvEiBoSRiphnFGkPp9sCAzPQa/BoagAtGaNv6Ji1oMQ2zIwQHD9Fan
 37AG0EvctQRCwf52GDzYiGFj8Bk/oX80=
X-Gm-Gg: ASbGncvKd6JprQVTeW531Iq6wFJ86D9RVWpJeSVK/Dsh3oNX58iGNY+jzbBcd10pGJQ
 O5J49KH0eAlGr0ENRsuJSh6Qju5JgC3n1B/BSopqR58YrNsCJjDZEWIpQYuOlemblNcfjpMaQ9Q
 cwVbXx/arkSpcUMYXY/KS69J7ait8wvKVrhg==
X-Google-Smtp-Source: AGHT+IFSjPRvSEViurKQVLP1rz5t9j4GwlFjrHyBvAJDRJq6Kj77kBwokdt7ErLf8TttHHKaAB453OipxlhZO8DeYkY=
X-Received: by 2002:a05:6102:41a7:b0:4e5:59ce:4717 with SMTP id
 ada2fe7eead31-4e746d06c89mr715504137.9.1749009178023; Tue, 03 Jun 2025
 20:52:58 -0700 (PDT)
MIME-Version: 1.0
References: <CAGPpUSoPzgd4bSKoAagQniBZoS+fhMZp0ZskoW5nA24VNxmtYg@mail.gmail.com>
 <865xht6k1e.fsf@gnu.org> <db4f94fe-a395-4ece-a9bb-6d763d7d0235@gmx.at>
In-Reply-To: <db4f94fe-a395-4ece-a9bb-6d763d7d0235@gmx.at>
From: Boris Aronov <aronov.boris@gmail.com>
Date: Wed, 4 Jun 2025 05:52:46 +0200
X-Gm-Features: AX0GCFuxxVJUa5OW6AGc7AD82TIVUOdABDL6qmJd3jXHf5IToTF1lZmKNsUqSwo
Message-ID: <CAGPpUSr-uyVcoOBMyEjVLSCp8+=RnkCiWyjw5afSs4XnkT9N=A@mail.gmail.com>
Subject: Re: bug#78527: 30.1;
 Mishaving new frame creation in MacOS on new desktop
To: martin rudalics <rudalics@gmx.at>
Content-Type: multipart/alternative; boundary="000000000000c3db5c0636b6eee4"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78527
Cc: Gerd Möllmann <gerd.moellmann@gmail.com>,
 Eli Zaretskii <eliz@gnu.org>, 78527@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
[Message part 1 (text/plain, inline)]
Hi,

On Thu, May 22, 2025 at 4:44 PM martin rudalics <rudalics@gmx.at> wrote:

>  > Gerd and Martin, any suggestions or comments?
>
> I'd like to understand the focus issue.  What does C-x 5 o do when run
> in the old frame?


- Opened "Emacs -Q"
- Clicked the green button (fullscreen)
- C-x 5 2 (new frame opens on another desktop)
- I swipe to original desktop
- C-x 5 o switches to the new one and repeating it takes me back

What does running 'foo' defined as
>
> (defun foo ()
>    (interactive)
>    (let ((frame (make-frame)))
>      (sit-for 3)
>      (message "%s" (frame-focus-state frame))))
>

When I do this in an non-full-screen frame, a new frame pops up with a "t"

When I do it in a full-screen frame, a new frame pops up but a "t' is in
the OLD frame.  And then (I think) with some delay it also appears in the
NEW frame.

>
> report?  Is the message shown in both frames?
>
> Does 'foo' specified as
>
> (defun foo ()
>    (interactive)
>    (let ((frame (make-frame)))
>      (select-frame-set-input-focus frame)))
>
> behave the same way?


I get a "nil" in both frames.  Hard to tell if it's simulataneous (as I
cannot look at them at the same time) and maybe switching desktops triggers
something.

  Does
>
> (add-hook 'after-make-frame-functions 'select-frame-set-input-focus)
>
> change anything?


Not really.  When I make a new frame, a new frame on a new desktop appears,
but typing M-x shows no change on screen.  When I switch back to the
original screen M-x shows on screen AND when I switch again NOW I can see
M-x prompt on the new screen as well.


  Does
>
> (add-hook 'after-make-frame-functions 'redirect-frame-focus)
>
> change anything?
>

No.  Same behavior as after the other add-hook.

Another oddity (or is it expected): when I switch back-and-forth between
desktops having typed M-x, on one screen the focus (selected window?) is on
the M-x line and on the other on *scratch* (where I originally ran the C-x
5 2 command).  Not sure which is which by now...

Actually, after a few switches back and forth, the M-x line is the selected
window in the frame where I typed it (new frame) and it's not selected in
the old frame.

Not sure if this helps in any way.

–Boris

>
> martin
>
[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Wed Sep 10 21:29:10 2025; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.