From 01f2e4463efa964ae4b87914cbe5da99719313fd Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Wed, 13 May 2026 21:47:24 +0200 Subject: [PATCH] Re-composite dialog after each event in modal loop After WMHandleEvent processes a key press, the text field repaints into its backing image. The modal loop now re-composites the view tree and commits to the scene graph so changes are visible immediately. --- WINGs/widgets.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/WINGs/widgets.c b/WINGs/widgets.c index 13bd4db..d06fa37 100644 --- a/WINGs/widgets.c +++ b/WINGs/widgets.c @@ -1172,6 +1172,16 @@ void WMRunModalLoop(WMScreen * scr, WMView * view) WMNextEvent(scr, &event); WMHandleEvent(&event); + + /* Wayland: re-composite and commit after each event */ + if (!scr->display) { + const W_ViewBackend *vb = scr->viewBackend; + W_View *top = view; + while (top->parent && !top->flags.topLevel) + top = top->parent; + vb->redisplay(scr->viewBackendCtx, top); + vb->map_subviews(scr->viewBackendCtx, top); + } } scr->modalView = oldModalView;