diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-05-22 11:27:23 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-05-22 11:27:23 +0900 |
| commit | 5bf9b9ebd09b5990cc2cfcc718d52c660c235d48 (patch) | |
| tree | 4a1b5c7d945ed85fe74845319a33b868cd0e24dc | |
| parent | 940234189476ce6cfd2b9f790e40b088ddb3503e (diff) | |
modified dwm/dwm.c
| -rw-r--r-- | dwm/dwm.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1554,8 +1554,10 @@ grabkeys(void) keychords[i]->keys[currentkey].mod | modifiers[c], root, True, GrabModeAsync, GrabModeAsync); - if (currentkey > 0) - XGrabKey(dpy, XKeysymToKeycode(dpy, XK_Escape), AnyModifier, root, True, GrabModeAsync, GrabModeAsync); + + if (currentkey > 0) + XGrabKey(dpy, XKeysymToKeycode(dpy, XK_Escape), AnyModifier, root, True, GrabModeAsync, GrabModeAsync); + XFree(syms); } } @@ -2324,7 +2326,7 @@ scratchpad_hide(const Arg *arg) static void scratchpad_remove() { - if (selmon->sel && (scratchpad_last_showed_1 != NULL || scratchpad_last_showed_2 != NULL ||scratchpad_last_showed_3 != NULL) && (selmon->sel == scratchpad_last_showed_1 || selmon->sel == scratchpad_last_showed_2 || selmon->sel == scratchpad_last_showed_3)) { + if (selmon->sel && (scratchpad_last_showed_1 != NULL || scratchpad_last_showed_2 != NULL || scratchpad_last_showed_3 != NULL) && (selmon->sel == scratchpad_last_showed_1 || selmon->sel == scratchpad_last_showed_2 || selmon->sel == scratchpad_last_showed_3)) { if (scratchpad_last_showed_1 == selmon->sel) { scratchpad_last_showed_1 = NULL; scratchpad_hide_flag--; |
