The titlebar now loses focus properly when anything else is clicked