godbout / WooshyWindowToTheForeground

Alfred Workflow to be used with Wooshy, that brings any macOS windows to the foreground
MIT License
54 stars 0 forks source link

can't get Dash in the foreground #3

Closed godbout closed 2 years ago

godbout commented 2 years ago

not that it really matters. Alfred itself should be used before the Workflow. much faster. but still wanna check out of curiosity. might teach us something about other apps or potential future issues.

godbout commented 2 years ago

issue is that the CG API return an empty title while the AX API returns what's selected in the left sidebar. so the match never happens.

godbout commented 2 years ago

so probably what needs to happen is we try to match by application pid, window title, size and position. if there's no title that matches, then we remove this from the predicate and only uses the app pid, window size and position.

godbout commented 2 years ago

testing on window bounds now if there's no title. Dash shows up.

godbout commented 2 years ago

fixed in https://github.com/godbout/WooshyWindowToTheForeground/releases/tag/1.1.0