Fixes the visual mode.

Fixes Issue #7 
It detects if you were in selection mode and restore the state after coming back from the minimap window.