public void setExtendedDesktopSize(int reason, int result,
                                     int width, int height,
                                     ScreenSet layout) {
    cp.supportsSetDesktopSize = true;

    if ((reason == screenTypes.reasonClient) &&
        (result != screenTypes.resultSuccess))
      return;

    if (!layout.validate(width, height))
      vlog.error("Server sent us an invalid screen layout");

    cp.width = width;
    cp.height = height;
    cp.screenLayout = layout;
  }