Check if the game interface is in the main term before filtering mouse clicks.