mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-03 08:15:37 +00:00
Don't capture the mouse initially on debug builds
This commit is contained in:
parent
4caa7ec749
commit
83b81aad4b
@ -615,8 +615,12 @@ void Session::exec()
|
|||||||
SDL_SetWindowSize(m_Window, width, height);
|
SDL_SetWindowSize(m_Window, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Capture the mouse
|
#ifndef QT_DEBUG
|
||||||
|
// Capture the mouse by default on release builds only.
|
||||||
|
// This prevents the mouse from becoming trapped inside
|
||||||
|
// Moonlight when it's halted at a debug break.
|
||||||
SDL_SetRelativeMouseMode(SDL_TRUE);
|
SDL_SetRelativeMouseMode(SDL_TRUE);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Disable the screen saver
|
// Disable the screen saver
|
||||||
SDL_DisableScreenSaver();
|
SDL_DisableScreenSaver();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user