summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c5
1 files changed, 5 insertions, 0 deletions
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++) ;