mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 16:25:45 +00:00
main: fix wake lock in Flatpak ...
... by using the XDP system
This commit is contained in:
parent
d3c26baaf1
commit
68901da65f
4 changed files with 64 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue