diff options
Diffstat (limited to 'patch/distributetags.c')
| -rw-r--r-- | patch/distributetags.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/patch/distributetags.c b/patch/distributetags.c index 284b24c..f20f53f 100644 --- a/patch/distributetags.c +++ b/patch/distributetags.c @@ -1,9 +1,16 @@ void distributetags(const Arg *arg) { + Client *c; unsigned int ui = 1; int i = 0; - for (Client *c = selmon->clients; c; c = c->next) { + + #if TAGSYNC_PATCH + Monitor *origselmon = selmon; + for (selmon = mons; selmon; selmon = selmon->next) { + #endif // TAGSYNC_PATCH + + for (c = selmon->clients; c; c = c->next) { if (HIDDEN(c)) continue; if (!(c->tags & TAGMASK)) @@ -11,7 +18,14 @@ distributetags(const Arg *arg) c->tags = (ui << i) & TAGMASK; i = (i + 1) % NUMTAGS; } + + #if TAGSYNC_PATCH + } + selmon = origselmon; + focus(NULL); + arrange(NULL); + #else focus(NULL); arrange(selmon); + #endif // TAGSYNC_PATCH } - |
