[xmonad] XMonad.Actions.CycleRecentWS rewrite (new modules inside)

Jochen Keil jochen.keil at gmail.com
Sun Jan 8 12:07:00 CET 2012

Hash: SHA1


my last version of CycleRecentWS.hs had a small logical bug.
I added the current ws to the end of the list but it should go to the
head. This makes also the somewhat strange +/-2 on secondary modifier
keypress superfluous.
I also thought about getting rid of passive grab but the problem is
that we stay in the recursive loop if we don't exit on the keyrelease
event by the grabbed modifier.
This shouldn't be a problem normally, because when you press another
modifier + key combination we'll terminate the loop. It can however
lead to unexpected behavior when releasing the modifier and then
pressing it again so that the loop stays active thus cycling over the
(old and possibly not desired) state again.

Best Regards,


On 07.01.2012 23:32, Jochen Keil wrote:
> Dear list,
> after struggling for a while the XMonad.Actions.CycleRecentWS
> contrib module, mainly because it actively grabs the whole keyboard
> (and thus breaks various functionality, e.g. switching the layout
> on the fly), I took the time to rewrite this module. It now does
> not actively grab the whole keyboard anymore but relies only on one
> passive grab. I imagine this could be done even more generally, but
> I am pretty satisfied with how it works now. However, since theres
> always room for improvement new ideas are always welcome. :)
> I've included another module which helps to setup up a passive grab
> on a certain key. Configuration is a bit (tr)icky, but I hope not
> too troublesome.
> Best regards,
> Jochen
> _______________________________________________ xmonad mailing
> list xmonad at haskell.org 
> http://www.haskell.org/mailman/listinfo/xmonad
Version: GnuPG v1.4.11 (GNU/Linux)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: CycleRecentHook.hs
Type: text/x-haskell
Size: 6761 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20120108/550e8f3b/attachment.hs>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CycleRecentHook.hs.sig
Type: application/pgp-signature
Size: 72 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20120108/550e8f3b/attachment.pgp>

More information about the xmonad mailing list