From ed17c126f6d8e5e5bb27b56b578bce293d9d89e2 Mon Sep 17 00:00:00 2001 From: Phantasm Date: Sun, 6 Aug 2023 18:09:57 +0200 Subject: [PATCH] Add comments --- .../Render/Drivers/Detectors/CX11FullScreenDetector.cpp | 1 + src/WallpaperEngine/Render/Drivers/Output/CX11Output.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/WallpaperEngine/Render/Drivers/Detectors/CX11FullScreenDetector.cpp b/src/WallpaperEngine/Render/Drivers/Detectors/CX11FullScreenDetector.cpp index c45f1fb..10b3f30 100644 --- a/src/WallpaperEngine/Render/Drivers/Detectors/CX11FullScreenDetector.cpp +++ b/src/WallpaperEngine/Render/Drivers/Detectors/CX11FullScreenDetector.cpp @@ -155,6 +155,7 @@ namespace WallpaperEngine::Render::Drivers::Detectors XRRCrtcInfo* crtc = XRRGetCrtcInfo (this->m_display, screenResources, info->crtc); + // screen not active, ignore it if (crtc == nullptr) continue; diff --git a/src/WallpaperEngine/Render/Drivers/Output/CX11Output.cpp b/src/WallpaperEngine/Render/Drivers/Output/CX11Output.cpp index 5ec551c..bbc8c71 100644 --- a/src/WallpaperEngine/Render/Drivers/Output/CX11Output.cpp +++ b/src/WallpaperEngine/Render/Drivers/Output/CX11Output.cpp @@ -136,6 +136,7 @@ void CX11Output::loadScreenInfo () XRRCrtcInfo* crtc = XRRGetCrtcInfo (this->m_display, screenResources, info->crtc); + // screen not active, ignore it if (crtc == nullptr) continue;