From 4644abb3e6024d960f98b09c7b11d8dd89c3772b Mon Sep 17 00:00:00 2001 From: "Brian P. Hinz" Date: Thu, 20 Aug 2015 01:46:00 -0400 Subject: [PATCH] Disable desktopSize option for embedded applets --- java/com/tigervnc/vncviewer/OptionsDialog.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java/com/tigervnc/vncviewer/OptionsDialog.java b/java/com/tigervnc/vncviewer/OptionsDialog.java index ebfaed73..6eb0072b 100644 --- a/java/com/tigervnc/vncviewer/OptionsDialog.java +++ b/java/com/tigervnc/vncviewer/OptionsDialog.java @@ -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); -- 2.39.5