From 1b322d92c3c9e2e91af430f2363957e36f874398 Mon Sep 17 00:00:00 2001 From: Ean Milligan Date: Mon, 19 Feb 2024 23:57:15 -0500 Subject: [PATCH] Add error message for when compositor does not support required protocols, tested on EndeavourOS/Hyperland and EndeavourOS/KDE. --- src/hyprpicker.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/hyprpicker.cpp b/src/hyprpicker.cpp index 67bcea9..bbe43f6 100644 --- a/src/hyprpicker.cpp +++ b/src/hyprpicker.cpp @@ -28,6 +28,12 @@ void CHyprpicker::init() { wl_display_roundtrip(m_pWLDisplay); + if (!m_pSCMgr) { + Debug::log(CRIT, "Compositor doesn't support wlr_screencopy_unstable_v1!"); + exit(1); + return; + } + for (auto& m : m_vMonitors) { m_vLayerSurfaces.emplace_back(std::make_unique(m.get()));