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. --HG-- extra : histedit_source : d8fe81a1690bd9406df132c325c8dd7c61baec29%2C2243b548ccaec444b2e4bdab04ba67cdf236c4fb
This commit is contained in:
parent
42b825029c
commit
51619c5485
1 changed files with 0 additions and 7 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue