simplify logic
workaround gtk autocentering