Added SO fix for shell-mode window resizing