unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Protesilaos Stavrou <info@protesilaos.com>
To: Po Lu <luangruo@yahoo.com>, Eli Zaretskii <eliz@gnu.org>
Cc: 61319@debbugs.gnu.org, joseph@ferano.io
Subject: bug#61319: 30.0.50; 'M-x select-frame-by-name' --with-pgtk does not switch focused frame
Date: Thu, 09 Feb 2023 10:01:25 +0200	[thread overview]
Message-ID: <87lel7e08a.fsf@protesilaos.com> (raw)
In-Reply-To: <875yce9aj8.fsf@yahoo.com>

> From: Po Lu <luangruo@yahoo.com>
> Date: Mon,  6 Feb 2023 21:40:59 +0800

> [... 17 lines elided]

>> You are saying that select-frame-set-input-focus doesn't move the
>> input focus to the newly-selected frame?  But that is only "best
>> effort":
>>
>>   select-frame-set-input-focus is a byte-compiled Lisp function in
>>   ‘frame.el’.
>>
>>   (select-frame-set-input-focus FRAME &optional NORECORD)
>>
>>   Select FRAME, raise it, and set input focus, if possible.
>>                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> Perhaps Po Lu could try fixing this, but in general Lisp programs and
>> users should not rely on success in these cases, because the WM can
>> actively prevent Emacs from giving the frame input focus.
>
> The Wayland protocol itself prevents Emacs from doing this.
>
> GTK 3 uses a private Wayland protocol extension named ``gtk-shell''
> which is implemented only by GNOME's Wayland compositor; it does not
> support the other extension typically used to activate toplevels.

Thank you for the explanation!  In that case there is nothing we can do
about it and this bug can be closed.

> Unless you're using GNOME Shell, I don't think we will be able to make
> this work, sorry.  If you do, however, it should already work.  So
> please tell us what Wayland compositor you are using.

The issue occurs on GNOME Wayland.  I normally use X with a tiling
window manager.  There the Emacs frame selection works as intended.

-- 
Protesilaos Stavrou
https://protesilaos.com

  reply	other threads:[~2023-02-09  8:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-06 10:52 bug#61319: 30.0.50; 'M-x select-frame-by-name' --with-pgtk does not switch focused frame Protesilaos Stavrou
2023-02-06 13:10 ` Eli Zaretskii
2023-02-06 13:40   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-09  8:01     ` Protesilaos Stavrou [this message]
2023-02-09  8:19       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-09  9:24         ` Protesilaos Stavrou

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=87lel7e08a.fsf@protesilaos.com \
    --to=info@protesilaos.com \
    --cc=61319@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=joseph@ferano.io \
    --cc=luangruo@yahoo.com \
    /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).