Add error message for when compositor does not support required protocols, tested on EndeavourOS/Hyperland and EndeavourOS/KDE.

This commit is contained in:
Ean Milligan 2024-02-19 23:57:15 -05:00 committed by Ean Milligan
parent 2ef703474f
commit 1b322d92c3

View file

@ -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<CLayerSurface>(m.get()));