From df118dc04668793b974def1f607d41f72d0e0d03 Mon Sep 17 00:00:00 2001 From: bakkeby Date: Wed, 20 May 2020 15:25:56 +0200 Subject: [PATCH] Switchtag patch, lose switchtag feature for client if the client is moved to another tag --- dwm.c | 4 ++++ patch/combo.c | 4 ++++ 2 files changed, 8 insertions(+) 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 {