-
-
Notifications
You must be signed in to change notification settings - Fork 647
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
Send window to display and follow focus #505
Comments
The intention is for the first set of commands to work as you initially wanted, but this is a bit tricky because of how macOS window focusing reports across multiple monitors. I would say that this is a bug, but I don't actually know how to solve it at this time. |
Fixed on master. |
@koekeishiya I use following. The issue I have is when window from display 2 is moved to display 1 which has multiple windows, it's not focusing on just moved window. I have to hit cmd + tab to focus to the window. Any solution for this behaviour? Thanks
|
This is not an issue. Try the script below:
That is, before sending the window, we can firstly get the the id of the current window, and then after the window is sent, we can focus the window with that id. |
…isplay to another display
To send window to display and follow focus I have this little shortcut:
Oddly when the window I'm sending to the next display is the latest in the current display the focus doesn't go to the next display (same for prev).
But when I change it to the following snippet everything works as expected:
Am I correct to assume the first snippet is wrong and I should always query prev/next display indices?
The text was updated successfully, but these errors were encountered: