mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-15 13:52:28 +00:00
Set SDL_HINT_APP_NAME for SDL 2.0.18
This commit is contained in:
parent
3fe6e18609
commit
80604a752b
1 changed files with 4 additions and 2 deletions
|
@ -442,9 +442,11 @@ int main(int argc, char *argv[])
|
||||||
// the mouse motion exactly how it was given to us.
|
// the mouse motion exactly how it was given to us.
|
||||||
SDL_SetHint("SDL_MOUSE_RELATIVE_SCALING", "0");
|
SDL_SetHint("SDL_MOUSE_RELATIVE_SCALING", "0");
|
||||||
|
|
||||||
// Set our app name for SDL to use with PulseAudio. This matches what we provide
|
// Set our app name for SDL to use with PulseAudio and PipeWire. This matches what we
|
||||||
// as our app name to libsoundio too.
|
// provide as our app name to libsoundio too. On SDL 2.0.18+, SDL_APP_NAME is also used
|
||||||
|
// for screensaver inhibitor reporting.
|
||||||
SDL_SetHint("SDL_AUDIO_DEVICE_APP_NAME", "Moonlight");
|
SDL_SetHint("SDL_AUDIO_DEVICE_APP_NAME", "Moonlight");
|
||||||
|
SDL_SetHint("SDL_APP_NAME", "Moonlight");
|
||||||
|
|
||||||
#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
|
||||||
|
|
Loading…
Reference in a new issue