On Tue 2012.10.30 at 00:21 -0500, Kent R. Spillner wrote:
> Hey, dude-
> 
> On Sun, Oct 28, 2012 at 04:14:07PM -0400, Okan Demirmen wrote:
> > A slightly altered version of your diff was applied -thanks!
> 
> Cool, thanks!
> 
> I noticed you and jmc@ removed the .Xr XClassHint 3 pointer.
> What do you think about the addition below?
> 
> Basically, I was really confused at first because autogroup
> didn't behave the way I expected it to.  Long story short,
> the problem was that I thought the WM_CLASS property mapped
> to what cwmrc(5) calls "windowclass," and WM_NAME mapped to
> "windowname."  After much head-scratching I had to turn to
> the cwm source to figure out that windowclass and windowname
> both come from WM_CLASS (I thought the two values were two
> different classes, i.e. windows could belong to multiple
> classes).
> 
> I'll defer to you and jmc@ on this one, but I personally
> think something along these lines would be helpful for
> XClassHint noobs like myself.

Hi,

Well, we did have the wrong line in cwmrc(5), so hopefully that will fix
some confusion.  However, I can see the point about not knowing what
'windowname' and 'windowclass' are assigned to with xprop(1) output -
xprop doesn't exactly document what 'WM_CLASS(STRING) = "xterm",
"XTerm"' means.  Then again, XClassHint(3) won't tell you what the
output of xprop(1) will be either.

How about helping xprop along like so?

Index: cwmrc.5
===================================================================
RCS file: /cvs/xenocara/app/cwm/cwmrc.5,v
retrieving revision 1.45
diff -u -p -r1.45 cwmrc.5
--- cwmrc.5     31 Oct 2012 19:30:19 -0000      1.45
+++ cwmrc.5     31 Oct 2012 19:49:06 -0000
@@ -59,7 +59,8 @@ used to override
 .Dq sticky group mode .
 .Pp
 The name and class values for existing windows may be obtained using
-.Xr xprop 1 .
+.Xr xprop 1 ,
+output as "windowname","windowclass".
 .Pp
 .It Ic bind Ar keys command
 Cause the creation of a keybinding, or replacement of a default

Reply via email to