diff --git a/client/main.c b/client/main.c index 50fb5af1..ccc7a875 100644 --- a/client/main.c +++ b/client/main.c @@ -378,10 +378,27 @@ int eventThread(void * arg) continue; } - if (event.type == SDL_QUIT) + switch(event.type) { + case SDL_QUIT: state.running = false; break; + + case SDL_WINDOWEVENT: + { + switch(event.window.event) + { + case SDL_WINDOWEVENT_ENTER: + realignGuest = true; + break; + + case SDL_WINDOWEVENT_SIZE_CHANGED: + updatePositionInfo(); + realignGuest = true; + break; + } + break; + } } if (!params.useSpice) @@ -530,22 +547,6 @@ int eventThread(void * arg) } break; - case SDL_WINDOWEVENT: - { - switch(event.window.event) - { - case SDL_WINDOWEVENT_ENTER: - realignGuest = true; - break; - - case SDL_WINDOWEVENT_SIZE_CHANGED: - updatePositionInfo(); - realignGuest = true; - break; - } - break; - } - default: break; }