[Xmonad] darcs patch: use a global IORef to keep list of urgent windows

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Tue Oct 30 12:00:47 EDT 2007

On Oct 30, 2007, at 11:25 , Don Stewart wrote:

> Oh, that's an issue -- now you've hidden state away in a module,  
> how are
> we going to get at it to serialise? This is why global state is bad.

Urgency hints are ephemeral state, for which the window manager is  
*not* authoritative; you do not want to save it, you want to  
reconstruct it on restart by checking extant windows' urgency hints.

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

More information about the Xmonad mailing list