JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix weird french keyboards
authorMarco Peereboom <marco@conformal.com>
Mon, 3 Oct 2011 22:10:48 +0000 (17:10 -0500)
committerMarco Peereboom <marco@conformal.com>
Mon, 3 Oct 2011 22:10:48 +0000 (17:10 -0500)
At least I was told this works.  Doesn't break my stuff so all is good
:-)

From: Jonathan Armani <dbd@asystant.net>
Via: Lawrence Teo <lteo@devio.us>

scrotwm.c

index f03445b..740c3f2 100644 (file)
--- a/scrotwm.c
+++ b/scrotwm.c
@@ -5428,14 +5428,15 @@ void
 keypress(XEvent *e)
 {
        unsigned int            i;
-       KeySym                  keysym;
+       KeySym                  keysym, skeysym;
        XKeyEvent               *ev = &e->xkey;
 
        DNPRINTF(SWM_D_EVENT, "keypress: window: %lu\n", ev->window);
 
        keysym = XKeycodeToKeysym(display, (KeyCode)ev->keycode, 0);
+       skeysym = XKeycodeToKeysym(display, (KeyCode)ev->keycode, 1);
        for (i = 0; i < keys_length; i++)
-               if (keysym == keys[i].keysym
+               if ((keysym == keys[i].keysym || skeysym == keys[i].keysym)
                    && CLEANMASK(keys[i].mod) == CLEANMASK(ev->state)
                    && keyfuncs[keys[i].funcid].func) {
                        if (keys[i].funcid == kf_spawn_custom)