Sublime Forum

Bug (API, OS X): focus_view() does not bring window to front

#1

Steps:

  1. In a plugin or the console, do:
other_window.focus_view(other_window.views()[0])
  1. other_window will be apparently focused (the current view will be defocused), but it will not be in front, and for the user it appears that nothing has happened.
  2. Alt-tab to another application.
  3. Alt-tab back to Sublime Text.
  4. oher_window will now be in front, and will have focus.

This bug prevents me from writing a particular plugin.

0 Likes