Fixing issue where the minimap could lead to a repaint recursion on Ubuntu 12 (worked on newer versions).