feat: set xdg client bound in init commit

This commit is contained in:
DreamMaoMao 2025-08-14 14:49:01 +08:00
parent 2a4c37f0d6
commit 189a1490d3

View file

@ -2204,6 +2204,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;