From 48afe77b982f496b9da73f2dc713ee880e7eb110 Mon Sep 17 00:00:00 2001 From: Fabrice Date: Tue, 10 Feb 2026 18:38:17 +0100 Subject: fix stale state --- src/wlstate.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/wlstate.cc') diff --git a/src/wlstate.cc b/src/wlstate.cc index 5233868..940a011 100644 --- a/src/wlstate.cc +++ b/src/wlstate.cc @@ -114,7 +114,10 @@ void wayc_wlstate_update(struct wlstate_s* state) { i32 rc = poll(&pfd, 1, 0); if (rc == -1) wayc_panic("Failed to poll Wayland eventfd"); - if (!(pfd.revents & POLLIN)) return; + if (!(pfd.revents & POLLIN)) { + wl_display_dispatch_pending(state->display); + return; + } rc = wl_display_dispatch(state->display); if (rc == -1) wayc_panic("Failed to dispatch Wayland events"); -- cgit v1.2.3