Fix login dialog layout (linux)

May fix #933