don't grab any key, when -key is not used
before this, the NoSymbol keysym was grabbed, which causes a badAccess error on a second instance of dunst if both don't use the -key option.
This commit is contained in:
parent
5c22743d53
commit
939d1f980b
6
dunst.c
6
dunst.c
@ -248,8 +248,10 @@ setup(void) {
|
||||
CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);
|
||||
|
||||
/* grab keys */
|
||||
code = XKeysymToKeycode(dc->dpy, key);
|
||||
XGrabKey(dc->dpy, code, mask, root, True, GrabModeAsync, GrabModeAsync);
|
||||
if(key != NoSymbol) {
|
||||
code = XKeysymToKeycode(dc->dpy, key);
|
||||
XGrabKey(dc->dpy, code, mask, root, True, GrabModeAsync, GrabModeAsync);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
x
Reference in New Issue
Block a user