help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get X Window id from within Emacs?


From: Jean Louis
Subject: Re: How to get X Window id from within Emacs?
Date: Mon, 16 Dec 2024 00:57:03 +0300
User-agent: Mutt/2.2.12 (2023-09-09)

* 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 via email to

[Prev in Thread] Current Thread [Next in Thread]