mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
feat: set xdg client bound in init commit
This commit is contained in:
parent
2a4c37f0d6
commit
189a1490d3
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue