X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=spectrwm.c;h=1002ee6cf1b6233c4148f54fb26d39fa6fa21c43;hb=325fce8801030f2d1a729e0310d801a42b310f8b;hp=9a61347ac0b692782f5aee43676092b8d525dd65;hpb=b8de26993fd4c73643d3c3f459f7297a07249d0a;p=spectrwm.git diff --git a/spectrwm.c b/spectrwm.c index 9a61347..1002ee6 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -88,6 +88,7 @@ #include #include +#include #include #include #include @@ -6155,7 +6156,7 @@ keypress(XEvent *e) struct key *kp; struct swm_region *r; - keysym = XKeycodeToKeysym(display, (KeyCode)ev->keycode, 0); + keysym = XkbKeycodeToKeysym(display, (KeyCode)ev->keycode, 0, 0); if ((kp = key_lookup(CLEANMASK(ev->state), keysym)) == NULL) return; if (keyfuncs[kp->funcid].func == NULL) @@ -6927,7 +6928,7 @@ setup_screens(void) /* init all workspaces */ /* XXX these should be dynamically allocated too */ - for (j = 0; j < workspace_limit; j++) { + for (j = 0; j < SWM_WS_MAX; j++) { ws = &screens[i].ws[j]; ws->idx = j; ws->name = NULL;