diff options
| author | 2026-07-02 17:48:49 -0400 | |
|---|---|---|
| committer | 2026-07-02 17:48:49 -0400 | |
| commit | 14e6bb6e6b9cc2a0c0f6b5fb80144a0f9c7c82d6 (patch) | |
| tree | a762ef0f687a828cb4c13c868cd3d5a7ca013d32 /src/window_x11.c | |
| parent | d7ed3f8a7b0e5e1b4c4f648e1f12579d7273eaad (diff) | |
| download | stela-14e6bb6e6b9cc2a0c0f6b5fb80144a0f9c7c82d6.tar.gz stela-14e6bb6e6b9cc2a0c0f6b5fb80144a0f9c7c82d6.tar.bz2 stela-14e6bb6e6b9cc2a0c0f6b5fb80144a0f9c7c82d6.zip | |
Remove return value from window->poll()
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/window_x11.c')
| -rw-r--r-- | src/window_x11.c | 9 |
1 files changed, 5 insertions, 4 deletions
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); |