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

Try to prevent MacOS from stealing focus away to another window #53

Merged
merged 1 commit into from
Oct 20, 2024

Conversation

mogenson
Copy link
Owner

Often times, MacOS will steal focus away from one window to another window within the same application. For example, focus a Chrome or Safari window on one monitor, and the focus will quickly switch to another visible Chrome or Safari window on a different monitor.

Start a timer to check the current window focus one animation duration after focusing a window and try to focus the window again if the desired window is not focused.

Often times, MacOS will steal focus away from one window to another
window within the same application. For example, focus a Chrome or
Safari window on one monitor, and the focus will quickly switch to
another visible Chrome or Safari window on a different monitor.

Start a timer to check the current window focus one animation duration
after focusing a window and try to focus the window again if the desired
window is not focused.
@mogenson mogenson merged commit d2c0b73 into main Oct 20, 2024
1 check passed
@mogenson mogenson deleted the keep-focus-on-window branch October 20, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant