From 03ef673d02aa11ec187264d571aeface8cef1482 Mon Sep 17 00:00:00 2001 From: Fabrice Date: Tue, 10 Feb 2026 12:26:00 +0100 Subject: commiting state changes --- src/window.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/window.cc b/src/window.cc index c0c8cd1..496027b 100644 --- a/src/window.cc +++ b/src/window.cc @@ -8,8 +8,11 @@ static void wayc_surface_configure(void *data, struct xdg_surface *xdg_surface, u32 serial) { - (void)data; + struct window_s *window = (struct window_s *)data; + wayc_notnull(window); + xdg_surface_ack_configure(xdg_surface, serial); + wl_surface_commit(window->surface); } static void wayc_toplevel_configure(void *data, @@ -79,6 +82,7 @@ bool wayc_window_init(struct window_s *window, const char *name, xdg_toplevel_add_listener(xdg_toplevel, &WAYC_TOPLEVEL_LISTENER, window); xdg_toplevel_set_title(xdg_toplevel, name); + wl_surface_commit(surface); window->surface = surface; window->xdg_surface = xdg_surface; -- cgit v1.2.3