summaryrefslogtreecommitdiff
path: root/dwm/dwm.c
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-22 17:52:28 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-06-22 17:52:28 +0900
commit4aec677a932e33c81bb987d0b62456a3e9c88b6f (patch)
tree01d33a4cbc0225b891a5bb9ea0d210dfa8020281 /dwm/dwm.c
parent5a1ab245ebdcc105439507dccd78e9e8e5505039 (diff)
modified dwm/config.def.h, modified dwm/dwm.c, created unpatched/dwm-floatrules-20210801-138b405.diff
Diffstat (limited to 'dwm/dwm.c')
-rw-r--r--dwm/dwm.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/dwm/dwm.c b/dwm/dwm.c
index 7443ac8..ae191e3 100644
--- a/dwm/dwm.c
+++ b/dwm/dwm.c
@@ -575,8 +575,9 @@ applyrules(Client *c)
XFree(ch.res_class);
if (ch.res_name)
XFree(ch.res_name);
- if (c->tags != SCRATCHPAD_MASK_1 && c->tags != SCRATCHPAD_MASK_2 && c->tags != SCRATCHPAD_MASK_3)
+ if (c->tags != SCRATCHPAD_MASK_1 && c->tags != SCRATCHPAD_MASK_2 && c->tags != SCRATCHPAD_MASK_3) {
c->tags = c->tags & TAGMASK ? c->tags & TAGMASK : (c->mon->tagset[c->mon->seltags] & ~SPTAGMASK);
+ }
}
int
@@ -1771,10 +1772,10 @@ manage(Window w, XWindowAttributes *wa)
c->expandmask = 0;
if (!c->isfloating)
c->isfloating = c->oldstate = trans != None || c->isfixed;
- if (c->isfloating)
+ if (c->isfloating) {
XRaiseWindow(dpy, c->win);
- if (c->isfloating)
XSetWindowBorder(dpy, w, scheme[SchemeNorm][ColFloat].pixel);
+ };
attach(c);
attachstack(c);
XChangeProperty(dpy, root, netatom[NetClientList], XA_WINDOW, 32, PropModeAppend,
@@ -2354,12 +2355,15 @@ scratchpad_remove()
if (scratchpad_last_showed_1 == selmon->sel) {
scratchpad_last_showed_1 = NULL;
scratchpad_hide_flag--;
+ selmon->sel->isfloating = 0;
} else if (scratchpad_last_showed_2 == selmon->sel) {
scratchpad_last_showed_2 = NULL;
scratchpad_hide_flag--;
+ selmon->sel->isfloating = 0;
} else if (scratchpad_last_showed_3 == selmon->sel) {
scratchpad_last_showed_3 = NULL;
scratchpad_hide_flag--;
+ selmon->sel->isfloating = 0;
}
}
}