From 7982e8155d28adc0cb1e7f0754e1f1342628fed9 Mon Sep 17 00:00:00 2001 From: Window Maker Date: Mon, 25 May 2026 12:25:43 +0200 Subject: [PATCH] WINGs/wayland: flush display after surface commit for immediate updates Without an explicit wl_display_flush after wl_surface_commit, protocol requests were buffered until the next event loop iteration. This caused visual updates (like the icon position preview in WPrefs) to appear one interaction behind. --- WINGs/wclient_wl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WINGs/wclient_wl.c b/WINGs/wclient_wl.c index 5bdaec8..361a398 100644 --- a/WINGs/wclient_wl.c +++ b/WINGs/wclient_wl.c @@ -403,6 +403,8 @@ wl_client_toplevel_commit_locked(WLClientToplevel *top) wl_surface_damage_buffer(top->surface, 0, 0, top->buf->width, top->buf->height); wl_surface_commit(top->surface); + if (top->ctx && top->ctx->display) + wl_display_flush(top->ctx->display); top->buf->busy = 1; top->mapped = 1; }