Hi,

Currently cwm(1) grabs the keyboard for M-Tab/MS-Tab cycling, which
works well until you try to rebind these keys to, say, 4-Tab.  I
propose clearing the keygrab if any modifier is released (this kind of
"breaks" the current behavior if you, M-Tab-Tab-Tab-Tab and, say, press
Ctrl in between, but who does that?):

Index: xevents.c
===================================================================
RCS file: /cvs/xenocara/app/cwm/xevents.c,v
retrieving revision 1.49
diff -u -r1.49 xevents.c
--- xevents.c   15 Dec 2009 04:10:42 -0000      1.49
+++ xevents.c   29 Jan 2010 09:59:30 -0000
@@ -337,13 +338,11 @@
        XKeyEvent               *e = &ee->xkey;
        struct screen_ctx       *sc;
        struct client_ctx       *cc;
-       int                      keysym;

        sc = screen_fromroot(e->root);
        cc = client_current();
-
-       keysym = XKeycodeToKeysym(X_Dpy, e->keycode, 0);
-       if (keysym != XK_Alt_L && keysym != XK_Alt_R)
+       
+        if (e->state != 0)
                return;

        sc->altpersist = 0;

I also have a small wishlist of features that generally would be useful:
- a keybinding to pop up the hide menu
- a command to remove all keybindings (it's hell for Emacs users to
  disable all default commands and remap them to e.g. 4-)
- alternatively, changing all key prefixes at once (like evilwm did).

Anyway, thanks for cwm, it replaces my evilwm setup now.

Please Cc: replies to me as I'm not subscribed.
-- 
Christian Neukirchen  <chneukirc...@gmail.com>  http://chneukirchen.org

Reply via email to