dwm

[fork] dynamic window manager
Log | Files | Refs | README | LICENSE

commit bdc31b4fb46c22242c4e0d678e863c33437394ad
parent aa3adb3e6f6e6b95be3386058843f2790d193186
Author: hhvn <dev@hhvn.uk>
Date:   Sat, 11 Dec 2021 19:14:13 +0000

dwm.c: rejig tags to how I think they should work

Diffstat:
Mdwm.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dwm.c b/dwm.c @@ -323,7 +323,7 @@ applyrules(Client *c) && (!r->instance || strstr(instance, r->instance))) { c->isfloating = r->isfloating; - c->tags |= r->tags; + c->tags = r->tags; for (m = mons; m && m->num != r->monitor; m = m->next); if (m) c->mon = m; @@ -333,7 +333,8 @@ applyrules(Client *c) XFree(ch.res_class); if (ch.res_name) XFree(ch.res_name); - c->tags = c->tags & TAGMASK ? c->tags & TAGMASK : c->mon->tagset[c->mon->seltags]; + if (!c->tags) + c->tags = c->mon->tagset[c->mon->seltags]; } int