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
2
dunst.c
2
dunst.c
@ -248,8 +248,10 @@ setup(void) {
|
|||||||
CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);
|
CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa);
|
||||||
|
|
||||||
/* grab keys */
|
/* grab keys */
|
||||||
|
if(key != NoSymbol) {
|
||||||
code = XKeysymToKeycode(dc->dpy, key);
|
code = XKeysymToKeycode(dc->dpy, key);
|
||||||
XGrabKey(dc->dpy, code, mask, root, True, GrabModeAsync, GrabModeAsync);
|
XGrabKey(dc->dpy, code, mask, root, True, GrabModeAsync, GrabModeAsync);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user