reset geometry when focused, fixes #58