[xmonad] complexity of 'windows'
dons at galois.com
Tue Feb 17 17:40:55 EST 2009
> I'm looking at the 'windows' function, and do not understand why it's so
> complicated. If it's just WindowSet -> WindowSet ... why is it so long?
> I ask this because I want to manipulate the WindowSet of a workspace that is
> _NOT_ visible; the only function that is WindowSet -> WindowSet is "windows".
> However, windows has W.current hard coded into it -- and I'm not sure what all
> of the other stuff in there is.
It's the function that flushes the window set model out to actual
X server effects on the world. It has to map our abstract understanding
of the state of the X server to real bits flipped in xorg.
We hide all the evil state manipulation in one place, rather than
sprinkling it throughout the beautiful model.
More information about the xmonad