MainFrame: fix snapping to desktop edges

Refs #4116
Treat tooltips as part of parent root window

Fixes #4128