From 4aec677a932e33c81bb987d0b62456a3e9c88b6f Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sun, 22 Jun 2025 17:52:28 +0900 Subject: modified dwm/config.def.h, modified dwm/dwm.c, created unpatched/dwm-floatrules-20210801-138b405.diff --- dwm/dwm.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'dwm/dwm.c') 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; } } } -- cgit v1.2.3