xdg_shell: explicitly schedule configure for initial commit

Compositors must reply to initial commit with a configure event.
This happens implicitly via set_fullscreen()/view_position(), but
let's be explicit.
This commit is contained in:
Simon Ser 2026-06-28 19:26:07 +02:00
parent 5f83b27d62
commit 0f0c637a06

View file

@ -257,13 +257,14 @@ handle_xdg_toplevel_commit(struct wl_listener *listener, void *data)
return;
}
/* When an xdg_surface performs an initial commit, the compositor must
* reply with a configure so the client can map the surface. */
wlr_xdg_surface_schedule_configure(xdg_shell_view->xdg_toplevel->base);
wlr_xdg_toplevel_set_wm_capabilities(xdg_shell_view->xdg_toplevel, XDG_TOPLEVEL_WM_CAPABILITIES_FULLSCREEN);
if (xdg_shell_view->xdg_toplevel->requested.fullscreen) {
set_fullscreen(xdg_shell_view, true);
} else {
/* When an xdg_surface performs an initial commit, the compositor must
* reply with a configure so the client can map the surface. */
view_position(&xdg_shell_view->view);
}
}