From f4efb1e8914c6f0c4cf075c054c85ade010e77bc Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Sat, 18 Apr 2020 16:17:07 +0200 Subject: [PATCH] Figuring what was the problem with the sdl module, but lektord is crumbling over sdl events --- src/module/module_sdl2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module/module_sdl2.c b/src/module/module_sdl2.c index 3f59fea4..acbbf45e 100644 --- a/src/module/module_sdl2.c +++ b/src/module/module_sdl2.c @@ -263,7 +263,7 @@ module_sdl2_handle_events(struct lkt_win *const win, sqlite3 *db, enum mpd_idle_ Do this to be able to put the SDL stuff inside a thread and don't change to much things. */ loop: - if (SDL_PollEvent(&event)) + if (!SDL_PollEvent(&event)) return true; switch (event.type) { -- GitLab