mirror of
https://github.com/ong19th/Citron.git
synced 2025-12-13 22:37:08 +00:00
Qt: enable recent Linux features on more Unices
- Prevent sleep via xdg-desktop-portal afterfa7abafa5f- Pause on suspend afterb7642cff36- Exit on SIGINT/SIGTERM after9479940a1f- Improve dark themes afterb51db12567
This commit is contained in:
parent
9fc1bcc7b2
commit
d7d7ae8219
4 changed files with 20 additions and 20 deletions
|
|
@ -15,7 +15,7 @@
|
|||
#include "yuzu/compatibility_list.h"
|
||||
#include "yuzu/hotkeys.h"
|
||||
|
||||
#ifdef __linux__
|
||||
#ifdef __unix__
|
||||
#include <QVariant>
|
||||
#include <QtDBus/QDBusInterface>
|
||||
#include <QtDBus/QtDBus>
|
||||
|
|
@ -255,7 +255,7 @@ private:
|
|||
void changeEvent(QEvent* event) override;
|
||||
void closeEvent(QCloseEvent* event) override;
|
||||
|
||||
#ifdef __linux__
|
||||
#ifdef __unix__
|
||||
void SetupSigInterrupts();
|
||||
static void HandleSigInterrupt(int);
|
||||
void OnSigInterruptNotifierActivated();
|
||||
|
|
@ -435,7 +435,7 @@ private:
|
|||
// True if TAS recording dialog is visible
|
||||
bool is_tas_recording_dialog_active{};
|
||||
|
||||
#ifdef __linux__
|
||||
#ifdef __unix__
|
||||
QSocketNotifier* sig_interrupt_notifier;
|
||||
static std::array<int, 3> sig_interrupt_fds;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue