Fix #653 Dialog not hidden on desktop region selection