From: Jean Louis <bugs@gnu.support>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to get X Window id from within Emacs?
Date: Mon, 16 Dec 2024 00:53:13 +0300 [thread overview]
Message-ID: <Z19PycrrC_yXYsNM@lco2> (raw)
In-Reply-To: <86ed28refi.fsf@gnu.org>
* Eli Zaretskii <eliz@gnu.org> [2024-12-15 21:28]:
> There's the window-id frame parameter, although I'm not sure it is
> universally available. Try
>
> M-: (frame-parameter nil 'window-id) RET
I think that ID is something Emacs related. Or I do not know how to convert it.
Result such as "46153928" I do not know how to use here:
$ sleep 3; xdotool windowactivate 46137524
XGetWindowProperty[_NET_WM_DESKTOP] failed (code=1)
is it is supposed to look this way:
sleep 3; xdotool windowactivate 0x2e000ac
So do I need to convert it somehow?
(format "%x" 46137524) ➜ "2c000b4"
But it failed:
$ xdotool windowactivate 0x2c000b4
XGetWindowProperty[_NET_WM_DESKTOP] failed (code=1)
I had to get: 0x2c040c4 instead as that was X Window ID, so I am not sure how this works.
Jean
next prev parent reply other threads:[~2024-12-15 21:53 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 [this message]
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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z19PycrrC_yXYsNM@lco2 \
--to=bugs@gnu.support \
--cc=eliz@gnu.org \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.