Make RemoteResize configurable from the options dialog.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4929 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/vncviewer/OptionsDialog.cxx b/vncviewer/OptionsDialog.cxx
index d3ed333..87cc5af 100644
--- a/vncviewer/OptionsDialog.cxx
+++ b/vncviewer/OptionsDialog.cxx
@@ -285,6 +285,7 @@
     snprintf(buf, sizeof(buf), "%d", height);
     desktopHeightInput->value(buf);
   }
+  remoteResizeCheckbox->value(remoteResize);
   fullScreenCheckbox->value(fullScreen);
 
   handleDesktopSize(desktopSizeCheckbox, this);
@@ -387,6 +388,7 @@
   } else {
     desktopSize.setParam("");
   }
+  remoteResize.setParam(remoteResizeCheckbox->value());
   fullScreen.setParam(fullScreenCheckbox->value());
 
   /* Misc. */
@@ -740,6 +742,12 @@
   desktopHeightInput = new Fl_Int_Input(x, ty, 50, INPUT_HEIGHT, "x");
   ty += INPUT_HEIGHT + TIGHT_MARGIN;
 
+  remoteResizeCheckbox = new Fl_Check_Button(LBLRIGHT(tx, ty,
+                                                      CHECK_MIN_WIDTH,
+                                                      CHECK_HEIGHT,
+                                                      _("Resize remote session to the local window")));
+  ty += CHECK_HEIGHT + TIGHT_MARGIN;
+
   fullScreenCheckbox = new Fl_Check_Button(LBLRIGHT(tx, ty,
                                                   CHECK_MIN_WIDTH,
                                                   CHECK_HEIGHT,
diff --git a/vncviewer/OptionsDialog.h b/vncviewer/OptionsDialog.h
index c406a45..c26c0c9 100644
--- a/vncviewer/OptionsDialog.h
+++ b/vncviewer/OptionsDialog.h
@@ -112,6 +112,7 @@
   Fl_Check_Button *desktopSizeCheckbox;
   Fl_Int_Input *desktopWidthInput;
   Fl_Int_Input *desktopHeightInput;
+  Fl_Check_Button *remoteResizeCheckbox;
   Fl_Check_Button *fullScreenCheckbox;
 
   /* Misc. */