When Emacs executes
call-process after the focus has moved to another window (this is after a compilation step which takes some time to finish) it grabs the focus and causes the pointer to move to the upper-right of the Emacs frame. This is on Linux using gnome-shell.
Is there any way to disable this behavior? Either globally or on a per-call basis?
Edit: Found it. The frame was being explicitly set by
select-frame-set-input-focus in a function that I was adding to
compilation-finish-function. I should understand the code I copy-and-paste a little better.