Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workaround for focusing windows with crappy macOS accessibility API #102

Closed
koekeishiya opened this issue Jul 8, 2019 · 0 comments
Closed
Labels
enhancement New feature or request

Comments

@koekeishiya
Copy link
Owner

koekeishiya commented Jul 8, 2019

After reverse engineering the WindowServer to figure out how to implement autofocus I have been able to reconstruct a different workaround to the A B C B focusing issue when multiple displays are in use.

How to reproduce the original problem:

Display 1: Open Terminal (A) and a Chrome window (B)
Display 2: Open a Chrome window (C)

Focus Chrome (B) on Display 1, and then focus Terminal (A) on Display 1.
Try to focus Chrome (C) on Display 2.

When using the accessibility API to focus the window, Chrome (B) on Display 1 would be focused.

After these changes we can now properly focus the Chrome (C) window on Display 2, without having to rely on the scripting-addition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant