Rebuild the menu only if another control than the MapView gets the focus (not when the MapView loses focus). This will hopefully fix the menu problems on GTK.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>