Fix titlebar buttons not being stuck to the right edge