From b61ba15a9c77d2c68b5bfb7bf32d3adfe4661ee5 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 4 Dec 2017 00:12:44 +1100 Subject: [PATCH] [client] fixed realignment when in server mode --- client/main.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/client/main.c b/client/main.c index 5d933ca6..7087e1f8 100644 --- a/client/main.c +++ b/client/main.c @@ -679,10 +679,12 @@ int eventThread(void * arg) case SDL_MOUSEMOTION: { if ( - event.motion.x < state.dstRect.x || - event.motion.x > state.dstRect.x + state.dstRect.w || - event.motion.y < state.dstRect.y || - event.motion.y > state.dstRect.y + state.dstRect.h + !serverMode && ( + event.motion.x < state.dstRect.x || + event.motion.x > state.dstRect.x + state.dstRect.w || + event.motion.y < state.dstRect.y || + event.motion.y > state.dstRect.y + state.dstRect.h + ) ) { realignGuest = true;