Fixes #8. Focus window on title buttons click