Skip to content

ui.active_window() sometimes returns the wrong windows #502

@phillco

Description

@phillco

I'm on beta 454, but I've noticed this for a while, most commonly (exclusively?) on JetBrains IDEs. After pushing ctrl-` to rotate windows, ui.active_window() will sometimes return the wrong (old), one. I notice this most frequently when using keyboard shortcuts to snap windows.

In testing, I noticed ui.focused_element().AXWindow does return the right one, so for now I can work around by writing an action that will compare the AXTitle of those two, and if they differ searching through ui.active_app().windows() to find the right one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions