summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2020-12-28 15:51:04 -0500
committerDevin J. Pohly <djpohly@gmail.com>2020-12-28 15:51:04 -0500
commit33c36be2fc7df3815abfcd8e0bc0bc2b65554ec5 (patch)
tree1d967978b5067fb49cbe63083224fae827d28e3c
parent313d1f7ecc59ba981fb708a3e564af1733e3289c (diff)
Revert "Allow toggling the layout before selecting a different one"
This reverts commit 90cc3b1e2c824db74e932dbb9733d398619a037c. Didn't mean to merge this change.
-rw-r--r--dwl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index df6e4fb..ef49b99 100644
--- a/dwl.c
+++ b/dwl.c
@@ -837,8 +837,7 @@ 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] = r->lt;
- m->lt[1] = &layouts[LENGTH(layouts) > 1 && r->lt != &layouts[1]];
+ m->lt[0] = m->lt[1] = r->lt;
wlr_output_set_transform(wlr_output, r->rr);
m->position = r - monrules;
break;