Fix mouse position change after q3terminal show.