XMonad.Actions.CycleRecentWS rewrite (new modules inside)

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk8IyA0ACgkQtVwvsA+W4CD/oQCfQQgOCq2F1jIemAgfYP14s+as mTQAn3710teJZPyRTei0kmv5sTquxpPO =XT02 -----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, 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, Jochen 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@haskell.org http://www.haskell.org/mailman/listinfo/xmonad -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAk8JeNQACgkQtVwvsA+W4CD1CACdGe1cgP5dWOW2qbiqfDcB4ve6 dnQAniHl+ZjyAkcD1/ZU8QxjFAhGwWdi =8OSk -----END PGP SIGNATURE-----
participants (1)
-
Jochen Keil