window: Fix the location of the buttons in the headerbar when is split