From 499beb16c196f8947cb9b01a1eff432041f67126 Mon Sep 17 00:00:00 2001 From: "J?rgen P. Tjern?" Date: Thu, 25 Apr 2013 18:40:31 -0700 Subject: [PATCH] Don't warp mouse on focus lost. This isn't working great, so undo it until we can fix it properly to save / restore mouse positions. --- src/video/SDL_video.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index 9f0b03b3f..09b05c23f 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -2074,17 +2074,10 @@ static SDL_bool ShouldMinimizeOnFocusLoss() void SDL_OnWindowFocusLost(SDL_Window * window) { - SDL_Mouse *mouse = SDL_GetMouse(); - if (window->gamma && _this->SetWindowGammaRamp) { _this->SetWindowGammaRamp(_this, window, window->saved_gamma); } - if (mouse && mouse->relative_mode) { - /* Restore the expected mouse position */ - SDL_WarpMouseInWindow(window, mouse->original_x, mouse->original_y); - } - SDL_UpdateWindowGrab(window); /* If we're fullscreen on a single-head system and lose focus, minimize */