aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Cella <guidocella91@gmail.com>2020-07-28 09:54:08 +0200
committerGuido Cella <guido@guidocella.xyz>2020-12-19 12:34:32 +0100
commit90cc3b1e2c824db74e932dbb9733d398619a037c (patch)
tree595e78e64f2f22240314a3d92a3edd44c462003a
parent41cc23e1cfc248eb10878fd172ca969ed27a5f44 (diff)
Allow toggling the layout before selecting a different one
-rw-r--r--dwl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 1df7288..497cfe5 100644
--- a/dwl.c
+++ b/dwl.c
@@ -825,7 +825,8 @@ createmon(struct wl_listener *listener, void *data)
m->nmaster = r->nmaster;
wlr_output_set_scale(wlr_output, r->scale);
wlr_xcursor_manager_load(cursor_mgr, r->scale);
- m->lt[0] = m->lt[1] = r->lt;
+ m->lt[0] = r->lt;
+ m->lt[1] = &layouts[LENGTH(layouts) > 1 && r->lt != &layouts[1]];
wlr_output_set_transform(wlr_output, r->rr);
break;
}