Function attach_display
pub fn attach_display(handle: &impl HasDisplayHandle) -> boolExpand description
Attach the native clipboard to the runner’s Wayland display, so copies go
through the connection that owns the focused surface — the compositor only
accepts set_selection from that one.
Returns true when it attached. A no-op when the current host’s clipboard
is not the system one (a host or test installed its own), when already
attached, or when the display is not Wayland.