From 14e6bb6e6b9cc2a0c0f6b5fb80144a0f9c7c82d6 Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Thu, 2 Jul 2026 17:48:49 -0400 Subject: Remove return value from window->poll() Signed-off-by: Andrew Opalach --- src/window_x11.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/window_x11.c') diff --git a/src/window_x11.c b/src/window_x11.c index 998beb4..17de7ae 100644 --- a/src/window_x11.c +++ b/src/window_x11.c @@ -359,10 +359,10 @@ static void window_x11_set_decorations(struct stl_window *window, bool enabled) } #ifdef STELA_POLL_INLINE -static bool window_x11_poll(struct stl_window *window, bool block) +static void window_x11_poll(struct stl_window *window, bool block) { struct stl_window_x11 *xw = (struct stl_window_x11 *)window; - return stl_poll_common(&xw->w, xw->fds, block); + stl_poll_common(xw->fds, block); } #ifdef STELA_PAUSE @@ -595,8 +595,9 @@ static void handle_next_xevent(struct stl_window_x11 *xw) static void window_x11_process_events(struct stl_window *window) { struct stl_window_x11 *xw = (struct stl_window_x11 *)window; - stl_process_events_common(&xw->w, xw->fds); - // It seems for some reason POLLIN doesn't get set even when there are events. + if (stl_process_events_common(&xw->w, xw->fds)) { + // It appears for some reason POLLIN doesn't get set even when there are events. + } XPending(global.x11_d); while (QLength(global.x11_d) > 0) { handle_next_xevent(xw); -- cgit v1.2.3-101-g0448