Repaint on maximize/restore.
Only bring to front if actually changed.