From 24b4aa8cf2458e7bbd4b53eb6eac5dce15158012 Mon Sep 17 00:00:00 2001 From: salivala Date: Fri, 26 Sep 2025 09:52:38 -0400 Subject: [PATCH] opt: keep current layout when combo multi tag --- src/dispatch/bind_define.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/dispatch/bind_define.h b/src/dispatch/bind_define.h index 066f6dd..e85b531 100644 --- a/src/dispatch/bind_define.h +++ b/src/dispatch/bind_define.h @@ -1282,19 +1282,19 @@ void viewtoright_have_client(const Arg *arg) { void comboview(const Arg *arg) { unsigned int newtags = arg->ui & TAGMASK; - unsigned int target_tag = selmon->tagset[selmon->seltags]; if (!newtags || !selmon) return; - if (tag_combo) - target_tag |= newtags; - else { + if (tag_combo) { + selmon->tagset[selmon->seltags] |= newtags; + focusclient(focustop(selmon), 1); + arrange(selmon, false); + } else { tag_combo = true; - target_tag = newtags; + view(&(Arg){.ui = newtags}, false); } - view(&(Arg){.ui = target_tag}, false); printstatus(); }