citra_qt: Prevent OS sleep on Linux when a game is running (#6249)

This commit is contained in:
Tobias 2023-03-23 19:37:10 +01:00 committed by GitHub
parent 343717e683
commit 54385a54eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 79 additions and 2 deletions

View file

@ -16,6 +16,10 @@
#include "core/hle/service/am/am.h"
#include "core/savestate.h"
#ifdef __unix__
#include <QDBusObjectPath>
#endif
class AboutDialog;
class Config;
class ClickableLabel;
@ -329,6 +333,10 @@ private:
HotkeyRegistry hotkey_registry;
#ifdef __unix__
QDBusObjectPath wake_lock{};
#endif
protected:
void dropEvent(QDropEvent* event) override;
void dragEnterEvent(QDragEnterEvent* event) override;