Merge pull request #13076 from robxnano/dbus-inhibit

Linux: Use D-Bus to inhibit screensaver
This commit is contained in:
Tilka
2024-10-12 00:31:58 +01:00
committed by GitHub
9 changed files with 229 additions and 41 deletions

View File

@ -1682,12 +1682,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)