show master area to the right

This commit is contained in:
Sevz17 2021-06-25 19:50:56 -05:00 committed by Leonardo Hernández Hernández
parent 4b8c1bf31e
commit cc012cf7af
No known key found for this signature in database
GPG Key ID: E538897EE11B9624

5
dwl.c
View File

@ -2373,11 +2373,12 @@ tile(Monitor *m)
if (!VISIBLEON(c, m) || c->isfloating || c->isfullscreen)
continue;
if (i < m->nmaster) {
resize(c, (struct wlr_box){.x = m->w.x, .y = m->w.y + my, .width = mw,
resize(c, (struct wlr_box){.x = m->w.x + m->w.width - mw,
.y = m->w.y + my, .width = mw,
.height = (m->w.height - my) / (MIN(n, m->nmaster) - i)}, 0);
my += c->geom.height;
} else {
resize(c, (struct wlr_box){.x = m->w.x + mw, .y = m->w.y + ty,
resize(c, (struct wlr_box){.x = m->w.x, .y = m->w.y + ty,
.width = m->w.width - mw, .height = (m->w.height - ty) / (n - i)}, 0);
ty += c->geom.height;
}