Skip to main content

attach_wayland_display

Function attach_wayland_display 

pub fn attach_wayland_display(handle: &impl HasDisplayHandle) -> bool
Expand description

Route system through the app’s own Wayland connection, so copies go through the connection that owns the focused surface — the compositor only accepts set_selection from that one.

The runner calls this once it has a display. Returns true when it attached: never on a display that is not Wayland, nor a second time.