hyprwm / hyprpicker

A wlroots-compatible Wayland color picker that does not suck.
BSD 3-Clause "New" or "Revised" License
690 stars 30 forks source link

Add error message for when compositor does not support required protcols #58

Open Burn-E99 opened 8 months ago

Burn-E99 commented 8 months ago

Adds a check to init() to verify the zwlr_screencopy_manager exists before using it to avoid a vague 'Segmentation Fault' (like seen in #51) when used on a system that does not implement the wlr_screencopy_unstable_v1 protocol.

As I'm one of the people who experienced the Seg Fault on KDE, I set up Hyprland on my laptop to make sure this didn't break functionality on the intended platform.