unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Alain.Cochard@unistra.fr
Cc: Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: Re: How to get X Window id from within Emacs?
Date: Mon, 16 Dec 2024 00:57:03 +0300	[thread overview]
Message-ID: <Z19QryszAghtsd7q@lco2> (raw)
In-Reply-To: <26463.10042.952656.405775@frac.u-strasbg.fr>

* Alain.Cochard@unistra.fr <Alain.Cochard@unistra.fr> [2024-12-15 22:02]:
> Wouldn't 'xwininfo' (or 'wmctrl'), from an Emacs shell, be enough?

- if I would know how to get result from `xwininfo` at the moment when it is fired out of Emacs, without me clicking on it, then fine.

- wmctrl I do not know how, do you know?

I need it programmatically, without user's interaction.

But now I am thinking to use `(select-frame-set-input-focus (selected-frame))` instead, to bring the user back to Emacs, let me try...

(progn
(sleep-for 10)
(select-frame-set-input-focus (selected-frame)))

So that worked well, I think I must use that method, and case is resolved now.

-- 
Jean Louis



      reply	other threads:[~2024-12-15 21:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-15 17:52 How to get X Window id from within Emacs? Jean Louis
2024-12-15 18:25 ` Eli Zaretskii
2024-12-15 21:53   ` Jean Louis
2024-12-16  0:39   ` Po Lu
2024-12-16  5:20     ` Jean Louis
2024-12-15 19:00 ` Alain.Cochard
2024-12-15 21:57   ` Jean Louis [this message]

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=Z19QryszAghtsd7q@lco2 \
    --to=bugs@gnu.support \
    --cc=Alain.Cochard@unistra.fr \
    --cc=help-gnu-emacs@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.
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).