mirror of
https://github.com/PabloMK7/citra.git
synced 2025-09-11 05:10:05 +00:00
citra_qt: Prevent OS sleep on Linux when a game is running (#6249)
This commit is contained in:
parent
343717e683
commit
54385a54eb
4 changed files with 79 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue