mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
linux: Use D-Bus to inhibit screensaver
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user