summaryrefslogtreecommitdiffstats
path: root/src/input_common
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-06-27 17:21:20 +0200
committerGitHub <noreply@github.com>2023-06-27 17:21:20 +0200
commitf254ce2c60fc3e59a98293e01198eff041c0eeaf (patch)
tree986dc5ea6604f1c5c26af120795c060b6f5e2ed7 /src/input_common
parentMerge pull request #10916 from ameerj/lolmem (diff)
parentOnly use SDL wakelock on Linux (diff)
downloadyuzu-f254ce2c60fc3e59a98293e01198eff041c0eeaf.tar
yuzu-f254ce2c60fc3e59a98293e01198eff041c0eeaf.tar.gz
yuzu-f254ce2c60fc3e59a98293e01198eff041c0eeaf.tar.bz2
yuzu-f254ce2c60fc3e59a98293e01198eff041c0eeaf.tar.lz
yuzu-f254ce2c60fc3e59a98293e01198eff041c0eeaf.tar.xz
yuzu-f254ce2c60fc3e59a98293e01198eff041c0eeaf.tar.zst
yuzu-f254ce2c60fc3e59a98293e01198eff041c0eeaf.zip
Diffstat (limited to 'src/input_common')
-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 3cc639ba7..9f26392b1 100644
--- a/src/input_common/drivers/sdl_driver.cpp
+++ b/src/input_common/drivers/sdl_driver.cpp
@@ -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");