Check `has_custom_titlebar` when selection cleared