From 1e641bc18a24eef6ef045ccaee4ca4f88b23d359 Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Fri, 2 Dec 2022 15:25:32 -0500 Subject: Viewing all tags automatically enters grid mode --- dwm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dwm.c b/dwm.c index 09a258f..27189bb 100644 --- a/dwm.c +++ b/dwm.c @@ -2453,6 +2453,11 @@ view(const Arg *arg) if (arg->ui == ~0) { selmon->pertag->curtag = 0; selmon->tagset[selmon->seltags] ^= SPTAGMASK; + // Force set the layout to grid when viewing + // all tags + Arg tmp; + tmp.v = &layouts[7]; + setlayout(&tmp); } else { for (i = 0; !(arg->ui & 1 << i); i++) ; -- cgit v1.2.3