fix: gapoh not apply correctly in VT layout

This commit is contained in:
DreamMaoMao
2025-12-26 08:35:02 +08:00
parent 471c71f65c
commit 14f15ec997

View File

@@ -40,14 +40,14 @@ void vertical_tile(Monitor *m) {
mh = m->w.height - 2 * cur_gapov + cur_gapiv * ie; mh = m->w.height - 2 * cur_gapov + cur_gapiv * ie;
i = 0; i = 0;
mx = tx = cur_gapih; mx = tx = cur_gapoh;
uint32_t master_surplus_width = uint32_t master_surplus_width =
(m->w.width - 2 * cur_gapih - cur_gapih * ie * (master_num - 1)); (m->w.width - 2 * cur_gapoh - cur_gapih * ie * (master_num - 1));
float master_surplus_ratio = 1.0; float master_surplus_ratio = 1.0;
uint32_t slave_surplus_width = uint32_t slave_surplus_width =
(m->w.width - 2 * cur_gapih - cur_gapih * ie * (stack_num - 1)); (m->w.width - 2 * cur_gapoh - cur_gapih * ie * (stack_num - 1));
float slave_surplus_ratio = 1.0; float slave_surplus_ratio = 1.0;
wl_list_for_each(c, &clients, link) { wl_list_for_each(c, &clients, link) {