clientWindow resizing fixes