Fixed the issue with minimap incorrectly being the active window

Thanks to Christoph Trassl for the tip!