summaryrefslogtreecommitdiffhomepage
path: root/patch/combo.c
diff options
context:
space:
mode:
Diffstat (limited to 'patch/combo.c')
-rw-r--r--patch/combo.c15
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);
}
-