server: Recalculate available geometry only when a panel is docked

Avoid recalculate every time panels are painted.