Newsgroups: comp.os.linux.x Date: 8 Feb 2003 21:30:23 +0100
> > I need to know what this property is for mozilla, but I'd like to know > > how to find out for any X application > > [...] I guess you're just supposed to know this junk if you use X ;-).
xprop(1)
The man pages would suggest "xwininfo -all", but I looked at the source and it appears that xwininfo doesn't give you any indication at all if there is no WM_CLASS hint defined for a window. It'll print the WM_CLASS hints if they exist, but it won't give you any explicit indication that the things it's printing *are* the WM_CLASS hints. I guess you're just supposed to know this junk if you use X ;-).
I modified the source a bit so that it'd say "no class hints" if it didn't find anything. I found that for the windows I have running under KDE 3.1, Mozilla doesn't have any WM_CLASS hints, and none of the KDE programs do either.
Matt G
> xprop(1)
*sigh* yeah, what Sven said. It's totally bizarre that xprop and xwininfo -all display different things for the WM_CLASS and WM_NAME properties though. Guess I was misled by "apropos WM_CLASS" returning nothing but references to XGetClassHint (3x), and grep -r within a recent XFree86 source tree returning no references to that function except in xwininfo.
Matt G