Skip to main content

pointer_target_is_focused

Function pointer_target_is_focused 

Source
pub fn pointer_target_is_focused(target: PointerTarget) -> bool
Expand description

Verify that this exact window, not merely another window of its application, is focused now. Returns false on any lookup failure or non-window target.

Like pointer_context, this may block and must never run in an input hook. It only observes focus and never changes it.