[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmonad
Subject:    Re: [xmonad] UnManageHook?
From:       Adam Vogt <vogt.adam () gmail ! com>
Date:       2009-09-22 22:33:57
Message-ID: 20090922223357.GA21990 () smuckers
[Download RAW message or body]

* On Tuesday, September 22 2009, Jan Vornberger wrote:

>Hey!
>
>I'm currently looking into how to re-implement my PositionStore in a way
...
>So I was thinking of adding an 'UnManageHook' as a counter part to
>ManageHooks so that modules from contrib can be notified when a window
>is unmapped.
>
>Any objections against this? Or is there an alternative way, which I
>didn't consider?
>
>Regards,
>
>Jan

Have a look at the handleEventHook. I think you can achieve your goal by
matching on the DestroyWindowEvent constructor, but I'm not sure if that
event is always sent. Layouts also get to listen to messages that are
EventS too.

Thanks,
Adam
_______________________________________________
xmonad mailing list
xmonad@haskell.org
http://www.haskell.org/mailman/listinfo/xmonad
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic