pop-os / cosmic-comp

Compositor for the COSMIC desktop environment
GNU General Public License v3.0
418 stars 51 forks source link

Disable Smithay `use_system_lib` to use Rust backend to wayland-rs #480

Closed ids1024 closed 1 month ago

ids1024 commented 1 month ago

It seems this was needed for renderer.bind_wl_display. But only in the X11 and winit backends. Unless there's some less obvious reason to use the use_system_lib feature, it seems undesirable and avoidable.

This uses WlDrmState to provide wl_drm on those backends instead.

If I hide the dmabuf global, Mesa EGL clients seem to work fine using wl_drm here with both the winit and x11 backends.