IPython's python-prompt-toolkit asks for a "cursor position report" on every prompt, which looks like input to atom-xterm and causes it to steal focus from other panes. Example:
Run ipython in xterm pane
Run some slow-ish python computation
Switch to editor pane
Sometime later, while you're editing, the computation finishes and steals focus back over to ipython
Here's some rough code pointers in python-prompt-toolkit, for reference:
IPython's python-prompt-toolkit asks for a "cursor position report" on every prompt, which looks like input to
atom-xterm
and causes it to steal focus from other panes. Example:ipython
in xterm paneHere's some rough code pointers in python-prompt-toolkit, for reference:
The fix here is just to not
.focus()
when input is received. This assumes: