Mouse: treat tooltips as part of main window

Fixes #4128