mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
don't grab keys if we don't know them
This commit is contained in:
parent
5e0cec002a
commit
c82a3ea39b
1 changed files with 2 additions and 1 deletions
3
event.c
3
event.c
|
@ -440,7 +440,8 @@ grabkeys(Display *disp, int screen, awesome_config *awesomeconf)
|
|||
XUngrabKey(disp, AnyKey, AnyModifier, RootWindow(disp, screen));
|
||||
for(i = 0; i < awesomeconf->nkeys; i++)
|
||||
{
|
||||
code = XKeysymToKeycode(disp, awesomeconf->keys[i].keysym);
|
||||
if((code = XKeysymToKeycode(disp, awesomeconf->keys[i].keysym)) == NoSymbol)
|
||||
continue;
|
||||
XGrabKey(disp, code, awesomeconf->keys[i].mod, RootWindow(disp, screen), True, GrabModeAsync, GrabModeAsync);
|
||||
XGrabKey(disp, code, awesomeconf->keys[i].mod | LockMask, RootWindow(disp, screen), True, GrabModeAsync, GrabModeAsync);
|
||||
XGrabKey(disp, code, awesomeconf->keys[i].mod | awesomeconf->numlockmask, RootWindow(disp, screen), True, GrabModeAsync, GrabModeAsync);
|
||||
|
|
Loading…
Reference in a new issue