pub fn take_focus_invalidation() -> bool
Returns true if a focus invalidation was pending and clears the flag.