the window to focus. You may want to make sure this window still exists when you request focus.
true if the window was focused, false otherwise.
A window may not have been focused because it doesn't accept focus (e.g some layer shell surfaces)
or simply because it doesn't exist anymore.
Window objects have a Window.focus method that can be used to achieve the same thing on a specific window directly.
Focus
window.