summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-04-23 17:19:17 +0200
committerbakkeby <[email protected]>2020-04-23 17:19:17 +0200
commit5848460fffcecd7306e9c71b1e4e6c7c1e6c072c (patch)
tree3eb43b9783b08e81779e700923fbb0b2e68e1558
parent7c4a0c347fb06d6e4c3f96a819b2e94595cab5c9 (diff)
downloaddwm-flexipatch-5848460fffcecd7306e9c71b1e4e6c7c1e6c072c.tar.gz
dwm-flexipatch-5848460fffcecd7306e9c71b1e4e6c7c1e6c072c.zip
Improved swallow and switchtag compatibility
-rw-r--r--README.md2
-rw-r--r--dwm.c7
2 files changed, 8 insertions, 1 deletions
diff --git a/README.md b/README.md
index 198be13..14c13e9 100644
--- a/README.md
+++ b/README.md
@@ -15,6 +15,8 @@ Refer to [https://dwm.suckless.org/](https://dwm.suckless.org/) for details on t
### Changelog:
+2020-04-23 - Improved swallow and switchtag compatibility
+
2020-04-16 - Upgraded the scratchpad patch to the multiple scratchpads patch \[[ref](https://lists.suckless.org/hackers/2004/17205.html)\]. Updated the statuscolors patch with the width computation fix \[[ref](https://lists.suckless.org/hackers/2004/17207.html)\].
2020-04-13 - Added statuscmd patch
diff --git a/dwm.c b/dwm.c
index 5bae9f7..b982a3f 100644
--- a/dwm.c
+++ b/dwm.c
@@ -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;