From cf8a7516b94edfd7bb3da22c431cc14015978c05 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Mon, 29 Sep 2025 12:24:22 +0800 Subject: [PATCH] fix: monocle miss apply gapo --- src/layout/horizontal.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/layout/horizontal.h b/src/layout/horizontal.h index dfab089..e211140 100644 --- a/src/layout/horizontal.h +++ b/src/layout/horizontal.h @@ -632,11 +632,16 @@ void tile(Monitor *m) { void // 17 monocle(Monitor *m) { Client *c; + struct wlr_box geom; wl_list_for_each(c, &clients, link) { if (!VISIBLEON(c, m) || !ISTILED(c)) continue; - resize(c, m->w, 0); + geom.x = m->w.x + gappoh; + geom.y = m->w.y + gappov; + geom.width = m->w.width - 2 * gappoh; + geom.height = m->w.height - 2 * gappov; + resize(c, geom, 0); } if ((c = focustop(m))) wlr_scene_node_raise_to_top(&c->scene->node);