mirror of
https://github.com/hyprwm/hyprpicker.git
synced 2024-11-16 16:15:58 +01:00
Add error message for when compositor does not support required protocols, tested on EndeavourOS/Hyperland and EndeavourOS/KDE.
This commit is contained in:
parent
2ef703474f
commit
1b322d92c3
1 changed files with 6 additions and 0 deletions
|
@ -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()));
|
||||
|
||||
|
|
Loading…
Reference in a new issue