configure xdg_toplevels after configuring it's decoration

This commit is contained in:
Leonardo Hernández Hernández 2024-08-14 13:14:15 -06:00
parent 0925372453
commit 89848d98b5
No known key found for this signature in database
GPG Key ID: E538897EE11B9624

5
dwl.c
View File

@ -800,10 +800,11 @@ commitnotify(struct wl_listener *listener, void *data)
client_set_scale(client_surface(c), c->mon->wlr_output->scale);
setmon(c, NULL, 0); /* Make sure to reapply rules in mapnotify() */
wlr_xdg_toplevel_set_wm_capabilities(c->surface.xdg->toplevel, WLR_XDG_TOPLEVEL_WM_CAPABILITIES_FULLSCREEN);
wlr_xdg_toplevel_set_size(c->surface.xdg->toplevel, 0, 0);
wlr_xdg_toplevel_set_wm_capabilities(c->surface.xdg->toplevel,
WLR_XDG_TOPLEVEL_WM_CAPABILITIES_FULLSCREEN);
if (c->decoration)
requestdecorationmode(&c->set_decoration_mode, c->decoration);
wlr_xdg_toplevel_set_size(c->surface.xdg->toplevel, 0, 0);
return;
}