all repos — dwm @ 4fe0cbe8aa5080a9c41319d9b54e296d8a6982e7

my dwm build

fix: annoying scratchpad sticky windows issue
Prithu Goswami pg@prithu.dev
Wed, 14 Feb 2024 00:31:24 +0530
commit

4fe0cbe8aa5080a9c41319d9b54e296d8a6982e7

parent

161fa92530879558f394d69a48e5771088b02cd8

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M dwm.cdwm.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;