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.
This commit is contained in:
Window Maker 2026-05-25 12:25:43 +02:00
parent a16c25a78e
commit 7982e8155d
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}