apply smartborders

This commit is contained in:
korei999 2023-11-29 22:08:16 +02:00
parent 2490fb0ea8
commit 8cbb93b950

6
dwl.c
View file

@ -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++;