@wbond
I have reproduced this bug on Linux Mint 17 Qiana, Cinnamon 64-bit 2.2.16, based on Ubuntu 14.04.5 LTS, Trusty Tahr.
As mentioned in the 3.2: Linux save_on_focus_lost setting still partially broken thread I think the problems in that thread and this are related.
I experience the same problem exactly as described by hey_blinken
. But I also noticed another aspect to it. Usually only the ST window which has the focus shows a blinking cursor. But when switching to the window which reports the incorrect window id
I noticed that a blinking cursor was present in BOTH windows - as if both windows had the current focus. This is a strong indication that the 2 threads are both reporting different aspects of the same problem.
Also earlier I created a new buffer/view using keys and nothing happened. I repeated the key presses several times to apparently no effect. Later I noticed that the new buffers/views had been created in a different window. This is entirely consistent with an incorrect window id
being reported. I should mention that the creation of the new buffers was done by a plugin I wrote - it is in this gist but it just uses the API’s new_file()
method with the sublime.active_window()
. When the new buffers were opened in another window it was an existing window and not one that was created by the plugin (different keys). As usual after restarting ST I was again able to open a new buffer in the active window.
@hey_blinken Could you re-start ST and then test for the problem every 10 mins or so to get a more accurate idea of how long it takes for the problem to re-emerge. The problems re-emerge for me after 1 to 3 hours.
@hey_blinken Could you post your version of Linux as well please.
Hope this helps.
EDIT: The About
dialog causing the focus to be auto-changed from one ST window to another one as reported here is, of course, also consistent with an incorrect window id
being reported.