2008/11/10 robert hickman <[EMAIL PROTECTED]>:
> Then I came across this pese of code in the manage function:
>
>   Window trans = None;
>
>   if(XGetTransientForHint(dpy, wind, &trans))
>       t = getclient(trans);
>   if(t)
>       clien->tags = t->tags;
>   else
>       applyrules(clien);
>
> what exactly does this do? and why is it doing it?
>
> Thanks.
>
>

The XGetTransientForHint function will tell us if the window to be
managed (wind) is a child window, in such a case the parent client is
stored in t. When the window has a parent, parent's tags will be
applied to the child (clien->tags = t->tags), else rules are applied
(as defined in config.h).
And btw, wx, wy, etc. comes from wax, way, etc for "window area". It
is perfectly documented in dwm.c. Using sort names for geometric
variables is a common rule in many coding style guides.

hth,

-- 


- yiyus || JGL .

Reply via email to