diff --git a/source/src/main.cpp b/source/src/main.cpp index eb9a2188..39db8492 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -456,6 +456,7 @@ int main(int argc, char **argv) case SDL_MOUSEMOTION: if(ignore) { ignore--; break; } + #ifndef WIN32 if(!(screen->flags&SDL_FULLSCREEN) && grabmouse) { #ifdef __APPLE__ @@ -464,7 +465,6 @@ int main(int argc, char **argv) if(event.motion.x == screen->w / 2 && event.motion.y == screen->h / 2) break; SDL_WarpMouse(screen->w / 2, screen->h / 2); } - #ifndef WIN32 if((screen->flags&SDL_FULLSCREEN) || grabmouse) #endif mousemove(event.motion.xrel, event.motion.yrel);