mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-01-15 05:17:29 -08:00
apply smartborders
This commit is contained in:
parent
2490fb0ea8
commit
8cbb93b950
1 changed files with 4 additions and 2 deletions
6
dwl.c
6
dwl.c
|
@ -3137,6 +3137,8 @@ vertile(Monitor *m)
|
||||||
} else {
|
} else {
|
||||||
h = ( m->w.height - ty ) / (n - i);
|
h = ( m->w.height - ty ) / (n - i);
|
||||||
resize(c, (struct wlr_box) { .x = m->w.x, .y = m->w.y + ty, .width = m->w.width, .height = h }, 0, draw_borders);
|
resize(c, (struct wlr_box) { .x = m->w.x, .y = m->w.y + ty, .width = m->w.width, .height = h }, 0, draw_borders);
|
||||||
|
=======
|
||||||
|
>>>>>>> c980d77 (apply smartborders)
|
||||||
ty += c->geom.height;
|
ty += c->geom.height;
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
|
@ -3168,11 +3170,11 @@ vertile(Monitor *m)
|
||||||
continue;
|
continue;
|
||||||
if (i < m->nmaster) {
|
if (i < m->nmaster) {
|
||||||
h = ( mh - my ) / (MIN(n, m->nmaster) - i);
|
h = ( mh - my ) / (MIN(n, m->nmaster) - i);
|
||||||
resize(c, (struct wlr_box) { .x = m->w.x, .y = m->w.y + my, .width = m->w.width, .height = h }, 0);
|
resize(c, (struct wlr_box) { .x = m->w.x, .y = m->w.y + my, .width = m->w.width, .height = h }, 0, draw_borders);
|
||||||
my += c->geom.height;
|
my += c->geom.height;
|
||||||
} else {
|
} else {
|
||||||
h = ( m->w.height - ty ) / (n - i);
|
h = ( m->w.height - ty ) / (n - i);
|
||||||
resize(c, (struct wlr_box) { .x = m->w.x, .y = m->w.y + ty, .width = m->w.width, .height = h }, 0);
|
resize(c, (struct wlr_box) { .x = m->w.x, .y = m->w.y + ty, .width = m->w.width, .height = h }, 0, draw_borders);
|
||||||
ty += c->geom.height;
|
ty += c->geom.height;
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
|
|
Loading…
Reference in a new issue