diff options
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); |