diff options
author | Guido Cella <guidocella91@gmail.com> | 2020-08-27 05:22:27 +0200 |
---|---|---|
committer | Guido Cella <guidocella91@gmail.com> | 2020-08-27 05:22:27 +0200 |
commit | c9f92bdd0ed8163c55f56a49490c555a48dd0b6d (patch) | |
tree | b63da814d841db671dd98e014e9a5e31477672e5 /dwl.c | |
parent | b8a6d3e86a7c27929a84a8d3326a08c33f28454c (diff) |
set a monitor geometry only when creating it
Lets layers with an exclusive area shrink the usable area
Diffstat (limited to 'dwl.c')
-rw-r--r-- | dwl.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -461,9 +461,6 @@ applyrules(Client *c) void arrange(Monitor *m) { - /* Get effective monitor geometry to use for window area */ - m->m = *wlr_output_layout_get_box(output_layout, m->wlr_output); - m->w = m->m; if (m->lt[m->sellt]->arrange) m->lt[m->sellt]->arrange(m); /* XXX recheck pointer focus here... or in resize()? */ @@ -833,6 +830,10 @@ createmon(struct wl_listener *listener, void *data) wlr_output_layout_add_auto(output_layout, wlr_output); sgeom = *wlr_output_layout_get_box(output_layout, NULL); + /* Get effective monitor geometry to use for window area */ + m->m = *wlr_output_layout_get_box(output_layout, m->wlr_output); + m->w = m->m; + len = LENGTH(m->layers); for (size_t i = 0; i < len; ++i) { wl_list_init(&m->layers[i]); |