You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Focusing the native window should trigger a focus event #9482
In ports/glutin/window.rs, along events like Event::Closed, we should handle the Event::Focused(focused) event and forward it to script_thread / document.
Once there, I'm not sure exactly what should be done. There is already a focus-handling mechanism at the document level (*_focus_transaction), but events are not dispatched as per
// TODO: dispatch blur, focus, focusout, and focusin events
At the compositor level, focus_parent_pipeline ensures that the chain of iframes are properly focused. But I don't see where iframes are unfocused.
On blur then focus, we might want to save self.focus_pipeline_id, unfocus all the iframes, and when focus comes back, focus the previous saved pipeline.
I'm also not sure how to deal with the script thread requesting focus while the native window is not focused.
Activity
servo: Add support for system focus handling (servo#48364)
servo: Add support for system focus handling (servo#48364)
servo: Add support for system focus handling (servo#48364)