From 0f0c637a063c54ca63eccddd87108c64c304c6ee Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 28 Jun 2026 19:26:07 +0200 Subject: [PATCH] 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. --- xdg_shell.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xdg_shell.c b/xdg_shell.c index c7d94f8..35f3f24 100644 --- a/xdg_shell.c +++ b/xdg_shell.c @@ -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); } }