Update cursor focus on popup unmap
This just mirrors the similar update that already happens on map.
Otherwise the cursor focus isn't updated until the next cursor movement, which can lead to "lost" mouse clicks etc.
Edited by Sebastian Krzyszkowiak