diff options
author | liushuyu <liushuyu011@gmail.com> | 2021-12-21 02:47:24 -0700 |
---|---|---|
committer | liushuyu <liushuyu011@gmail.com> | 2021-12-22 02:27:09 -0700 |
commit | fa7abafa5f2a3d066ac74193b494f162302e9590 (patch) | |
tree | 2c4b74fc9139d38860a7648ed01e13ed04690c17 /src/yuzu/main.h | |
parent | 36df305b13afc3d91bb7f9694dedab9a84a94130 (diff) |
main: fix wake lock in Flatpak ...
... by using the XDP system
Diffstat (limited to 'src/yuzu/main.h')
-rw-r--r-- | src/yuzu/main.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/yuzu/main.h b/src/yuzu/main.h index 0fd41ed4f..7870bb963 100644 --- a/src/yuzu/main.h +++ b/src/yuzu/main.h @@ -17,6 +17,12 @@ #include "yuzu/compatibility_list.h" #include "yuzu/hotkeys.h" +#ifdef __linux__ +#include <QVariant> +#include <QtDBus/QDBusInterface> +#include <QtDBus/QtDBus> +#endif + class Config; class EmuThread; class GameList; @@ -394,6 +400,9 @@ private: // Applets QtSoftwareKeyboardDialog* software_keyboard = nullptr; +#ifdef __linux__ + QDBusObjectPath wake_lock{}; +#endif protected: void dropEvent(QDropEvent* event) override; |