sublime-goto-window icon indicating copy to clipboard operation
sublime-goto-window copied to clipboard

Catalina 10.15.7, dual screen, only works on main screen

Open thoro opened this issue 4 years ago • 1 comments

Hi,

I'm using 1.0.7 and it seems that the GotoWindow function does not work correctly with multiple screens.

When using it on my main screen it works fine, but if the window is on the secondary screen, it does not focus correctly.

I have figured out that it focuses the correct window in sublime, but the trick via applescript always focuses Sublime Text on the main screen.

thoro avatar Feb 22 '21 08:02 thoro

Ok, it seems this is caused by the option "Displays have separate spaces"

I guess the apple scripts / python would need todo something like:

Python: space_to_go = window_to_go_to.getSpace()

AppleScript: activate space space_to_go ... usual switch to dock / switch to sublime

https://macscripter.net/viewtopic.php?id=23453

thoro avatar Feb 22 '21 08:02 thoro