summaryrefslogtreecommitdiff
path: root/src/input_common/drivers/sdl_driver.cpp
diff options
context:
space:
mode:
authorGravatar zeltermann2023-06-09 11:42:23 +0700
committerGravatar zeltermann2023-06-24 14:51:41 +0700
commit482fbded9b2dd2d5dd0ac55d66d456d7ffefaaa2 (patch)
tree1486f0f89d1734bfd915d9279cfdbcb1c15d585b /src/input_common/drivers/sdl_driver.cpp
parentMerge pull request #10891 from german77/sdl28v2 (diff)
downloadyuzu-482fbded9b2dd2d5dd0ac55d66d456d7ffefaaa2.tar.gz
yuzu-482fbded9b2dd2d5dd0ac55d66d456d7ffefaaa2.tar.xz
yuzu-482fbded9b2dd2d5dd0ac55d66d456d7ffefaaa2.zip
Only use SDL wakelock on Linux
SDL has internally fixed shenanigans related to wakelocking through DBus from inside sandboxes from around August 2022, so we can now remove the workaround we used since 2021.
Diffstat (limited to 'src/input_common/drivers/sdl_driver.cpp')
-rw-r--r--src/input_common/drivers/sdl_driver.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input_common/drivers/sdl_driver.cpp b/src/input_common/drivers/sdl_driver.cpp
index 9a0439bb5..ab64a64a2 100644
--- a/src/input_common/drivers/sdl_driver.cpp
+++ b/src/input_common/drivers/sdl_driver.cpp
@@ -483,6 +483,10 @@ void SDLDriver::CloseJoysticks() {
483} 483}
484 484
485SDLDriver::SDLDriver(std::string input_engine_) : InputEngine(std::move(input_engine_)) { 485SDLDriver::SDLDriver(std::string input_engine_) : InputEngine(std::move(input_engine_)) {
486 // Set our application name. Currently passed to DBus by SDL and visible to the user through
487 // their desktop environment.
488 SDL_SetHint(SDL_HINT_APP_NAME, "yuzu");
489
486 if (!Settings::values.enable_raw_input) { 490 if (!Settings::values.enable_raw_input) {
487 // Disable raw input. When enabled this setting causes SDL to die when a web applet opens 491 // Disable raw input. When enabled this setting causes SDL to die when a web applet opens
488 SDL_SetHint(SDL_HINT_JOYSTICK_RAWINPUT, "0"); 492 SDL_SetHint(SDL_HINT_JOYSTICK_RAWINPUT, "0");