Another debugging idea that might be useful: What happens if you replace gnome-terminal with xev? That is, give focus to an xev window by clicking inside it (using accessibility keyboard-driven fake mouse). Does it print any event regarding mouse movement or anything unusual?
Another debugging idea that might be useful: What happens if you replace gnome-terminal with xev? That is, give focus to an xev window by clicking inside it (using accessibility keyboard-driven fake mouse). Does it print any event regarding mouse movement or anything unusual?