diff options
| author | Bagellll <[email protected]> | 2022-02-11 10:57:53 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-02-11 16:57:53 +0100 |
| commit | ae67378b200842998bb4bc178e0d67220f09fefc (patch) | |
| tree | 9da48cb032d37b646a0b93d954fe5b7942f9cf96 /patch/combo.c | |
| parent | 8f986a4e3b64533d9d96272941685a314f3fa837 (diff) | |
| download | dwm-flexipatch-ae67378b200842998bb4bc178e0d67220f09fefc.tar.gz dwm-flexipatch-ae67378b200842998bb4bc178e0d67220f09fefc.zip | |
Tag-Sync patch (for syncing tags across all monitors) (#219)
* Tag-Sync patch
* Major compatibility updates
* SWITCHTAG/TAGSYNC compatibility
* tagsync: refactoring
Co-authored-by: bakkeby <[email protected]>
Diffstat (limited to 'patch/combo.c')
| -rw-r--r-- | patch/combo.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/patch/combo.c b/patch/combo.c index 058b1f9..58b31f1 100644 --- a/patch/combo.c +++ b/patch/combo.c @@ -30,21 +30,10 @@ combotag(const Arg *arg) void comboview(const Arg *arg) { - unsigned newtags = arg->ui & TAGMASK; if (combo) { - selmon->tagset[selmon->seltags] |= newtags; + view(&((Arg) { .ui = selmon->tagset[selmon->seltags] | (arg->ui & TAGMASK) })); } else { - selmon->seltags ^= 1; /*toggle tagset*/ combo = 1; - if (newtags) { - #if PERTAG_PATCH - pertagview(&((Arg) { .ui = newtags })); - #else - selmon->tagset[selmon->seltags] = newtags; - #endif // PERTAG_PATCH - } + view(arg); } - focus(NULL); - arrange(selmon); } - |
