summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-05-22 11:27:23 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-05-22 11:27:23 +0900
commit5bf9b9ebd09b5990cc2cfcc718d52c660c235d48 (patch)
tree4a1b5c7d945ed85fe74845319a33b868cd0e24dc
parent940234189476ce6cfd2b9f790e40b088ddb3503e (diff)
modified dwm/dwm.c
-rw-r--r--dwm/dwm.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/dwm/dwm.c b/dwm/dwm.c
index ba67d41..fd990f9 100644
--- a/dwm/dwm.c
+++ b/dwm/dwm.c
@@ -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--;