Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Allow toggling the layout before selecting a different one #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dwl.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,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;
}
Expand Down