summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2022-12-02 15:25:32 -0500
committerDouglas Rumbaugh <dbr4@psu.edu>2022-12-02 15:25:32 -0500
commit1e641bc18a24eef6ef045ccaee4ca4f88b23d359 (patch)
treeaa3261229eeef2c9b3360242bed3a3e1d7d72048 /dwm.c
parente58117ad94ae324fc9dd3a6851b0e6aea78cf05e (diff)
downloaddwm-1e641bc18a24eef6ef045ccaee4ca4f88b23d359.tar.gz
Viewing all tags automatically enters grid 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++) ;