sowm: attempt to fix key issue

This commit is contained in:
Dylan Araps 2019-10-25 02:23:19 +03:00
parent 35b12c7969
commit 5b012c10be
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 1 additions and 0 deletions

1
sowm.c
View File

@ -280,6 +280,7 @@ int main(void) {
XSelectInput(d, root, SubstructureRedirectMask);
XDefineCursor(d, root, XCreateFontCursor(d, 68));
XUngrabKey(d, AnyKey, AnyModifier, root);
for (unsigned int i=0; i < sizeof(keys)/sizeof(*keys); ++i)
XGrabKey(d, XKeysymToKeycode(d, keys[i].keysym), keys[i].mod,