Handle mouse leaving initial window in `mouse-set-region' (Bug#23707)