fix: annoying scratchpad sticky windows issue
Prithu Goswami pg@prithu.dev
Wed, 14 Feb 2024 00:31:24 +0530
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
dwm.c
→
dwm.c
@@ -1313,6 +1313,7 @@ c->h = c->oldh = wa->height;
c->oldbw = wa->border_width; updatetitle(c); + selmon->tagset[selmon->seltags] &= ~scratchtag; if (XGetTransientForHint(dpy, w, &trans) && (t = wintoclient(trans))) { c->mon = t->mon; c->tags = t->tags;@@ -1331,7 +1332,6 @@ c->y = MAX(c->y, ((c->mon->by == c->mon->my) && (c->x + (c->w / 2) >= c->mon->wx)
&& (c->x + (c->w / 2) < c->mon->wx + c->mon->ww)) ? bh : c->mon->my); c->bw = borderpx; - selmon->tagset[selmon->seltags] &= ~scratchtag; if (!strcmp(c->name, scratchpadname)) { c->mon->tagset[c->mon->seltags] |= c->tags = scratchtag; c->isfloating = True;