summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-05-20 15:25:56 +0200
committerbakkeby <[email protected]>2020-05-20 16:43:09 +0200
commitdf118dc04668793b974def1f607d41f72d0e0d03 (patch)
tree24ab83fa20650ad2d8f24f6162cc2499cce09953
parent5e281dcd446c9ff982b6b569e5405fde79a955bf (diff)
downloaddwm-flexipatch-df118dc04668793b974def1f607d41f72d0e0d03.tar.gz
dwm-flexipatch-df118dc04668793b974def1f607d41f72d0e0d03.zip
Switchtag patch, lose switchtag feature for client if the client is moved to another tag
-rw-r--r--dwm.c4
-rw-r--r--patch/combo.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index 329b839..d665066 100644
--- a/dwm.c
+++ b/dwm.c
@@ -3277,6 +3277,10 @@ tag(const Arg *arg)
if (selmon->sel && arg->ui & TAGMASK) {
selmon->sel->tags = arg->ui & TAGMASK;
+ #if SWITCHTAG_PATCH
+ if (selmon->sel->switchtag)
+ selmon->sel->switchtag = 0;
+ #endif // SWITCHTAG_PATCH
focus(NULL);
#if SWAPFOCUS_PATCH && PERTAG_PATCH
selmon->pertag->prevclient[selmon->pertag->curtag] = NULL;
diff --git a/patch/combo.c b/patch/combo.c
index 7d1f3f2..907b645 100644
--- a/patch/combo.c
+++ b/patch/combo.c
@@ -12,6 +12,10 @@ void
combotag(const Arg *arg)
{
if (selmon->sel && arg->ui & TAGMASK) {
+ #if SWITCHTAG_PATCH
+ if (selmon->sel->switchtag)
+ selmon->sel->switchtag = 0;
+ #endif // SWITCHTAG_PATCH
if (combo) {
selmon->sel->tags |= arg->ui & TAGMASK;
} else {