Fix the resizing of CSD windows