summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-02-10 12:26:00 +0100
committerFabrice <fabrice@schaub-dev.xyz>2026-02-10 12:26:00 +0100
commit03ef673d02aa11ec187264d571aeface8cef1482 (patch)
treeefe3db45d80b379bf38c25a59cb870c56d514387
parent0d62b836f33bd7029e769ffe1a823d7fcec0a8ff (diff)
commiting state changes
-rw-r--r--src/window.cc6
1 files changed, 5 insertions, 1 deletions
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;