Skip to main content

prefer_host_pointer

Function prefer_host_pointer 

Source
pub fn prefer_host_pointer<T>(
    host: Option<Option<T>>,
    share: impl FnOnce() -> Option<T>,
) -> Option<T>
Expand description

The pointer WaylandBackend.pointer_location reports: under host capture (Some), host capture’s alone, None included; otherwise the compositor’s own.