@vicinae/api
    Preparing search index...

    Function focusWindow

    • Focus window.

      Parameters

      • window: Window

        the window to focus. You may want to make sure this window still exists when you request focus.

      Returns Promise<boolean>

      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.