tabsmanager: Fix utility windows' shifting behaviour

When using event.x/y, the saved values would be the internal window's position.
To save the general window position, window.get_position() was used.

Fixes bug #692980
mainwindow: Fix main window's panes shifting position

Complements the fix for utility windows in bug #692980