Improved swallow and switchtag compatibility

This commit is contained in:
bakkeby
2020-04-23 17:19:17 +02:00
parent 7c4a0c347f
commit 5848460fff
2 changed files with 8 additions and 1 deletions

7
dwm.c
View File

@ -547,7 +547,12 @@ applyrules(Client *c)
c->mon = m;
#if SWITCHTAG_PATCH
if (r->switchtag) {
#if SWALLOW_PATCH
if (r->switchtag && (c->noswallow || !termforwin(c)))
#else
if (r->switchtag)
#endif // SWALLOW_PATCH
{
unsigned int newtagset;
if (r->switchtag == 2)
newtagset = c->mon->tagset[c->mon->seltags] ^ c->tags;