Don't cancel mouse capture on focus loss in absolute mode
This commit is contained in:
parent
f926ad9b5e
commit
f2d5cf785e
1 changed files with 1 additions and 1 deletions
|
|
@ -1386,7 +1386,7 @@ void SdlInputHandler::notifyFocusLost(SDL_Window* window)
|
||||||
// This lets user to interact with our window's title bar and with the buttons in it.
|
// This lets user to interact with our window's title bar and with the buttons in it.
|
||||||
// Doing this while the window is full-screen breaks the transition out of FS
|
// Doing this while the window is full-screen breaks the transition out of FS
|
||||||
// (desktop and exclusive), so we must check for that before releasing mouse capture.
|
// (desktop and exclusive), so we must check for that before releasing mouse capture.
|
||||||
if (!(SDL_GetWindowFlags(window) & SDL_WINDOW_FULLSCREEN)) {
|
if (!(SDL_GetWindowFlags(window) & SDL_WINDOW_FULLSCREEN) && !m_AbsoluteMouseMode) {
|
||||||
setCaptureActive(false);
|
setCaptureActive(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue