Function tetra::window::focus[][src]

pub fn focus(ctx: &mut Context)
Expand description

Brings the window to the front and gives it input focus.

Keep in mind that stealing focus from another application can be extremely disruptive. You should avoid doing this unless you’re certain it is what the user wants.