mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-28 02:34:15 +00:00
apply smartborders
This commit is contained in:
parent
2490fb0ea8
commit
8cbb93b950
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…
x
Reference in New Issue
Block a user