fix: monocle miss apply gapo

This commit is contained in:
DreamMaoMao 2025-09-29 12:24:22 +08:00
parent a06552b670
commit cf8a7516b9

View file

@ -632,11 +632,16 @@ void tile(Monitor *m) {
void // 17 void // 17
monocle(Monitor *m) { monocle(Monitor *m) {
Client *c; Client *c;
struct wlr_box geom;
wl_list_for_each(c, &clients, link) { wl_list_for_each(c, &clients, link) {
if (!VISIBLEON(c, m) || !ISTILED(c)) if (!VISIBLEON(c, m) || !ISTILED(c))
continue; 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))) if ((c = focustop(m)))
wlr_scene_node_raise_to_top(&c->scene->node); wlr_scene_node_raise_to_top(&c->scene->node);