From fa7abafa5f2a3d066ac74193b494f162302e9590 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Tue, 21 Dec 2021 02:47:24 -0700 Subject: main: fix wake lock in Flatpak ... ... by using the XDP system --- src/yuzu/main.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/yuzu/main.h') 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 +#include +#include +#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; -- cgit v1.2.3