Skip to content

feat: add X11 fallback for Wayland compositors#27

Merged
beeender merged 1 commit intomainfrom
mc/wayland_fallback
Feb 16, 2026
Merged

feat: add X11 fallback for Wayland compositors#27
beeender merged 1 commit intomainfrom
mc/wayland_fallback

Conversation

@beeender
Copy link
Owner

Add test_protocol_available() function to check if the wlr_data_control
protocol is available before selecting the Wayland backend. This allows
richclip to fall back to X11 when running on Wayland compositors that
don't support the wlroots-specific protocol (e.g., WSLg, GNOME Mutter).
Also improve error messages for bind_singleton failures to make debugging
easier when the protocol is not available.

Add test_protocol_available() function to check if the wlr_data_control
protocol is available before selecting the Wayland backend. This allows
richclip to fall back to X11 when running on Wayland compositors that
don't support the wlroots-specific protocol (e.g., WSLg, GNOME Mutter).
Also improve error messages for bind_singleton failures to make debugging
easier when the protocol is not available.
@beeender beeender force-pushed the mc/wayland_fallback branch from db219d0 to 88255d7 Compare February 16, 2026 08:29
@beeender beeender merged commit cfa7ce0 into main Feb 16, 2026
3 checks passed
@beeender beeender deleted the mc/wayland_fallback branch February 16, 2026 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant