How can a client identify the window manager version?
James Cloos
cloos+pdx-xorg at jhcloos.com
Wed Nov 2 11:17:35 PST 2005
>>>>> "Mart" == Mart Raudsepp <leio at dustbite.net> writes:
Mart> I have not queried this for myself, but you should be able to
Mart> get the child Window in question from _NET_SUPPORTING_WM_CHECK
Mart> (with the proper handling of cases where it isn't set), and
Mart> query that child windows _NET_WM_NAME then. Personally I am not
Mart> sure if wm's set the version number into there too.
I just gave it a quick look on my laptop with with xprop(1x):
,----
| :; xprop -root|egrep ^_NET_SUPPORTING_WM_CHECK
| _NET_SUPPORTING_WM_CHECK(WINDOW): window id # 0x80003b
| :; xprop -id 0x80003b
| _NET_WM_NAME(STRING) = "IceWM 1.2.23 (Linux 2.6.14-lug2-g9f75e1ef/i686)"
| _NET_WM_PID(CARDINAL) = 31165
| _NET_SUPPORTING_WM_CHECK(WINDOW): window id # 0x80003b
| _WIN_SUPPORTING_WM_CHECK(CARDINAL) = 8388667
| WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW
`----
So icewm, at least, includes its name, version and the equiv of:
,----
| :; printf "(%s %s/%s)" $(uname -s) $(uname -r) $(uname -m)
`----
-JimC
--
James H. Cloos, Jr. <cloos at jhcloos.com>
More information about the xorg
mailing list