maximize and window buttons are now merged in a toggling button