aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Layout/MultiToggle/Instances.hs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix MultiToggle crashes with decorated layoutsTomas Janousek2009-12-201-5/+6
| | | | | | | | | | | | | | | | | | | | | | | Ignore-this: 9208f5da9f0de95464ea62cb45e8f291 The problem was that certain layouts keep their "world" state in their value, which was thrown away and forgotten after ReleaseResources during toggle. In particular, decorated layouts store some X11 handles in them and allocate/deallocate it as appropriate. If any modification to their state is ignored, they may try to deallocate already deallocated memory, which results in a crash somewhere inside Xlib. This patch makes Transformers reversible so that nothing is ever ignored. As a side effect, layout transformers now do receive messages and messages for the base layout do not need the undo/reapply cycle -- we just pass messages to the current transformed layout and unapply the transformer when needed. (This, however, doesn't mean that the base layout is not asked to release resources on a transformer change -- we still need the transformer to release its resources and there's no way to do this without asking the base layout as well.) darcs-hash:20091220004733-c9ff5-34670f3db8ab715d8f334973d6ea2a3e7f3aed7a.gz
* Replace most -fglasgow-exts with specific LANGUAGE pragmasAdam Vogt2009-06-261-3/+1
| | | | | | Ignore-this: 2274fdd689b0576a76d9f3373e9c7159 darcs-hash:20090626025457-1499c-1d7bdb15732bb3d45e853e140f66fe38fc4fcafa.gz
* MultiToggle/Instances: ghc 6.6 can't parse LANGUAGE pragmaBrent Yorgey2008-04-041-1/+1
| | | | darcs-hash:20080404200157-bd4d7-062acb7e8a338cfec4e66b49cd2baac2c8370067.gz
* MultiToggle: add new XMonad.Layout.MultiToggle.Instances module for common ↵Brent Yorgey2008-03-311-0/+40
instances of Transformer, update MultiToggle docs accordingly darcs-hash:20080331201739-bd4d7-901730282c5a27e589deba161b77c2752f643a0f.gz