mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 23:35:55 +00:00
Set SDL_MOUSE_AUTO_CAPTURE=0 since we manage mouse capture ourselves
This commit is contained in:
parent
52761ade87
commit
efad34be62
@ -457,6 +457,10 @@ int main(int argc, char *argv[])
|
|||||||
SDL_SetHint("SDL_AUDIO_DEVICE_APP_NAME", "Moonlight");
|
SDL_SetHint("SDL_AUDIO_DEVICE_APP_NAME", "Moonlight");
|
||||||
SDL_SetHint("SDL_APP_NAME", "Moonlight");
|
SDL_SetHint("SDL_APP_NAME", "Moonlight");
|
||||||
|
|
||||||
|
// We handle capturing the mouse ourselves when it leaves the window, so we don't need
|
||||||
|
// SDL doing it for us behind our backs.
|
||||||
|
SDL_SetHint("SDL_MOUSE_AUTO_CAPTURE", "0");
|
||||||
|
|
||||||
#ifdef QT_DEBUG
|
#ifdef QT_DEBUG
|
||||||
// Allow thread naming using exceptions on debug builds. SDL doesn't use SEH
|
// Allow thread naming using exceptions on debug builds. SDL doesn't use SEH
|
||||||
// when throwing the exceptions, so we don't enable it for release builds out
|
// when throwing the exceptions, so we don't enable it for release builds out
|
||||||
|
Loading…
x
Reference in New Issue
Block a user