mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-12-16 09:53:19 +00:00
show master area to the right
This commit is contained in:
parent
4b8c1bf31e
commit
cc012cf7af
5
dwl.c
5
dwl.c
@ -2373,11 +2373,12 @@ tile(Monitor *m)
|
|||||||
if (!VISIBLEON(c, m) || c->isfloating || c->isfullscreen)
|
if (!VISIBLEON(c, m) || c->isfloating || c->isfullscreen)
|
||||||
continue;
|
continue;
|
||||||
if (i < m->nmaster) {
|
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);
|
.height = (m->w.height - my) / (MIN(n, m->nmaster) - i)}, 0);
|
||||||
my += c->geom.height;
|
my += c->geom.height;
|
||||||
} else {
|
} 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);
|
.width = m->w.width - mw, .height = (m->w.height - ty) / (n - i)}, 0);
|
||||||
ty += c->geom.height;
|
ty += c->geom.height;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user