
Hi, On Sat, Jan 29, 2011 at 10:35:06PM -0500, Brandon S Allbery KF8NH wrote:
On 1/27/11 05:11 , Jan-David Quesel wrote:
The question is how to reveal it in a convenient way. I dont even really have an idea how to find the dzen window in my event hook, as I cannot store a WindowSet in the manageHook as its not compatible with ExtensibleState.
You don't want to store a StackSet; just store the dzen window (`ask' in the manageHook) in ExtensibleState: this *does* work unless someone broke it recently. Then you can retrieve it in e.g. a keybinding and hide/show as appropriate. (I would arrange for it not to reserve space/set struts, hide it by default, and map it while the mod key is held; it should in any case be doIgnore-d.)
ah yeah that sounds like a good idea. might have been a missunderstanding on my side that I didnt come to think of just using ask to retrieve the window. I'm now trying to use the following manageHook checkDock --> do win <- ask WindowDump windows <- XS.get :: X WindowDump XS.put $ WindowDump (win:windows) doHideIgnore where WindowDump is just data WindowDump = WindowDump ([Window]) deriving (Read, Show, Typeable) instance ExtensionClass WindowDump where initialValue = WindowDump [] extensionType = PersistentExtension Unfortunatly this just gives type errors. Is there a way to store the window in the managehook or has this to be done somewhere else? Regards, Jan -- Jan-David Quesel Carl von Ossietzky Universität Oldenburg Department of Computing Science Correct System Design D-26111 Oldenburg, Germany Phone: +49 (0)441 798-2376 Fax: +49 (0)441 798-2965