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.
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().AXWindowdoes return the right one, so for now I can work around by writing an action that will compare theAXTitleof those two, and if they differ searching throughui.active_app().windows()to find the right one.