From 206df1f6ae921f7fd6b91cd9685896f580fdf1f9 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Thu, 14 Aug 2025 14:49:01 +0800 Subject: [PATCH] feat: set xdg client bound in init commit --- src/mango.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mango.c b/src/mango.c index cc84d5f..6c6ed1c 100644 --- a/src/mango.c +++ b/src/mango.c @@ -2156,6 +2156,12 @@ void commitnotify(struct wl_listener *listener, void *data) { WLR_XDG_TOPLEVEL_WM_CAPABILITIES_MINIMIZE; wlr_xdg_toplevel_set_wm_capabilities(c->surface.xdg->toplevel, wm_caps); + if (c->mon) { + wlr_xdg_toplevel_set_bounds(c->surface.xdg->toplevel, + c->mon->w.width - 2 * c->bw, + c->mon->w.height - 2 * c->bw); + } + if (c->decoration) requestdecorationmode(&c->set_decoration_mode, c->decoration); return;