mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
linux: Use D-Bus to inhibit screensaver
This commit is contained in:
parent
4bc1546596
commit
2748771cb3
9 changed files with 229 additions and 41 deletions
|
@ -1686,12 +1686,7 @@ void MainWindow::UpdateScreenSaverInhibition()
|
|||
|
||||
m_is_screensaver_inhibited = inhibit;
|
||||
|
||||
#ifdef HAVE_X11
|
||||
if (GetWindowSystemType() == WindowSystemType::X11)
|
||||
UICommon::InhibitScreenSaver(winId(), inhibit);
|
||||
#else
|
||||
UICommon::InhibitScreenSaver(inhibit);
|
||||
#endif
|
||||
}
|
||||
|
||||
bool MainWindow::eventFilter(QObject* object, QEvent* event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue