Function smithay::wayland::compositor::give_role[][src]

pub fn give_role(
    surface: &WlSurface,
    role: &'static str
) -> Result<(), AlreadyHasRole>
Expand description

Register that this surface has given role

Fails if the surface already has a role.