mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-26 09:44:14 +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 {
|
||||
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);
|
||||
=======
|
||||
>>>>>>> c980d77 (apply smartborders)
|
||||
ty += c->geom.height;
|
||||
}
|
||||
i++;
|
||||
@ -3168,11 +3170,11 @@ vertile(Monitor *m)
|
||||
continue;
|
||||
if (i < m->nmaster) {
|
||||
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;
|
||||
} else {
|
||||
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;
|
||||
}
|
||||
i++;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user