[dwm] questions about DWM source

From: robert hickman <robert.e.hickman_AT_googlemail.com>
Date: Sun, 09 Nov 2008 23:24:54 +0000

Recently ive bean trying to find out how X11 window managers work, and
how to wright them. as DWM seams to have the smallist code, but still be
useable it seampt to be a good point to start. So far I've found the
source to be quite difficult to follow, mainly due to the large number
of global variables and the not terrabely descriptive variable names
such as wx, and wy (which I have been renamed to window_x and window_y).
fairly easy to fix, but didn't make it easy for me to find my way around
the code.

Then I came across this pese of code in the manage function:

    Window trans = None;

    if(XGetTransientForHint(dpy, wind, &trans))
        t = getclient(trans);
        clien->tags = t->tags;

what exactly does this do? and why is it doing it?

Received on Sun Nov 09 2008 - 23:24:54 UTC

This archive was generated by hypermail 2.2.0 : Sun Nov 09 2008 - 22:36:05 UTC