Merge pull request #10679 from zeltermann/wakelock-reason

Only use SDL wakelock on Linux
This commit is contained in:
liamwhite 2023-06-27 11:21:20 -04:00 committed by GitHub
commit f91cc2c72f
3 changed files with 12 additions and 52 deletions

View file

@ -487,6 +487,10 @@ void SDLDriver::CloseJoysticks() {
}
SDLDriver::SDLDriver(std::string input_engine_) : InputEngine(std::move(input_engine_)) {
// Set our application name. Currently passed to DBus by SDL and visible to the user through
// their desktop environment.
SDL_SetHint(SDL_HINT_APP_NAME, "yuzu");
if (!Settings::values.enable_raw_input) {
// Disable raw input. When enabled this setting causes SDL to die when a web applet opens
SDL_SetHint(SDL_HINT_JOYSTICK_RAWINPUT, "0");