From d8b4d0c1ce44c971171b3e7cb34d27de01ab4d4f Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 4 Oct 2018 17:17:46 +1000 Subject: [PATCH] [client] consume all SDL events in the filter --- client/main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/main.c b/client/main.c index 9c31b837..1b78e2eb 100644 --- a/client/main.c +++ b/client/main.c @@ -481,7 +481,7 @@ int eventFilter(void * userdata, SDL_Event * event) } if (!params.useSpice) - return 1; + return 0; switch(event->type) { @@ -652,11 +652,9 @@ int eventFilter(void * userdata, SDL_Event * event) break; } break; - - default: - return 1; } + // consume all events return 0; }