]> source.dussan.org Git - tigervnc.git/commitdiff
Disable desktopSize option for embedded applets
authorBrian P. Hinz <bphinz@users.sf.net>
Thu, 20 Aug 2015 05:46:00 +0000 (01:46 -0400)
committerBrian P. Hinz <bphinz@users.sf.net>
Thu, 20 Aug 2015 05:46:00 +0000 (01:46 -0400)
java/com/tigervnc/vncviewer/OptionsDialog.java

index ebfaed732462c54b2d6105a3ee60a644fe51416f..6eb0072bc705509510c70bd70a3d38343cf94ded 100644 (file)
@@ -167,7 +167,8 @@ class OptionsDialog extends Dialog implements
     ScreenPanel=new JPanel(new GridBagLayout());
     desktopSize = new JCheckBox("Resize remote session on connect");
     desktopSize.addItemListener(this);
-    desktopSize.setEnabled(cc.viewer.desktopSize.getValue() != null);
+    desktopSize.setEnabled(!cc.viewer.embed.getValue() &&
+                           (cc.viewer.desktopSize.getValue() != null));
     NumberFormat format = NumberFormat.getIntegerInstance();
     format.setMaximumIntegerDigits(5);
     format.setMinimumIntegerDigits(0);