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()));