Cleanup X11 and XRANDR Macros

This fixes build with X11 enabled and XRANDR disabled.
This commit is contained in:
Norbert Lange committed 2021-02-22 14:30:43 +01:00
1 parent b6e9cca64f
commit 29eaf09be4
5 files changed
+7 -6

No files matched your search

+1 -1
View File
@@ -1463,7 +1463,7 @@ void MainWindow::UpdateScreenSaverInhibition()
m_is_screensaver_inhibited = inhibit;
#if defined(HAVE_XRANDR) && HAVE_XRANDR
#ifdef HAVE_X11
if (GetWindowSystemType() == WindowSystemType::X11)
UICommon::InhibitScreenSaver(winId(), inhibit);
#else