From f0f58f34e3457c005f9845e8aed9d0a2cfee6db4 Mon Sep 17 00:00:00 2001 From: salivala Date: Thu, 25 Sep 2025 12:25:36 -0400 Subject: [PATCH] opt: selecting first tags layout for combo instead of ignoring layout --- src/dispatch/bind_define.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/dispatch/bind_define.h b/src/dispatch/bind_define.h index 26c8341..066f6dd 100644 --- a/src/dispatch/bind_define.h +++ b/src/dispatch/bind_define.h @@ -1281,18 +1281,20 @@ void viewtoright_have_client(const Arg *arg) { } void comboview(const Arg *arg) { - uint32_t newtags = arg->ui & TAGMASK; + unsigned int newtags = arg->ui & TAGMASK; + unsigned int target_tag = selmon->tagset[selmon->seltags]; + if (!newtags || !selmon) return; if (tag_combo) - selmon->tagset[selmon->seltags] |= newtags; + target_tag |= newtags; else { tag_combo = true; - selmon->tagset[selmon->seltags] = newtags; + target_tag = newtags; } - focusclient(focustop(selmon), 1); - arrange(selmon, false); + + view(&(Arg){.ui = target_tag}, false); printstatus(); }