Added auto-resize patch

- Added auto-resize patch to fix borders appearing when only one window
  was visible.