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:53:13 +0300
User-agent: Mutt/2.2.12 (2023-09-09)

* 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




reply via email to

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