Skip to main content

is_surface

Function is_surface 

pub fn is_surface() -> bool
Expand description

Whether this process is a surface app’s, as the session that started it says: a surface is handed the actions socket the session answers on.

No session places a window it did not start in a process of its own, so a build without the native runner is never a surface and nothing names the variable there.