diff options
author | Brian P. Hinz <bphinz@users.sf.net> | 2015-08-20 18:27:15 -0400 |
---|---|---|
committer | Brian P. Hinz <bphinz@users.sf.net> | 2015-08-20 18:27:15 -0400 |
commit | 09e150762084e6ba9b169c0fefe0294b2c9c100e (patch) | |
tree | 5e70b50476aa48f300642d7c3a37034d68811831 /java | |
parent | 4644abb3e6024d960f98b09c7b11d8dd89c3772b (diff) | |
download | tigervnc-09e150762084e6ba9b169c0fefe0294b2c9c100e.tar.gz tigervnc-09e150762084e6ba9b169c0fefe0294b2c9c100e.zip |
Disable window functions for embedded applet
Diffstat (limited to 'java')
-rw-r--r-- | java/com/tigervnc/vncviewer/CConn.java | 3 | ||||
-rw-r--r-- | java/com/tigervnc/vncviewer/F8Menu.java | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/java/com/tigervnc/vncviewer/CConn.java b/java/com/tigervnc/vncviewer/CConn.java index 280b1b4f..88b25ec0 100644 --- a/java/com/tigervnc/vncviewer/CConn.java +++ b/java/com/tigervnc/vncviewer/CConn.java @@ -545,6 +545,9 @@ public class CConn extends CConnection implements } public void setEmbeddedFeatures(boolean s) { + menu.restore.setEnabled(s); + menu.minimize.setEnabled(s); + menu.maximize.setEnabled(s); menu.fullScreen.setEnabled(s); menu.newConn.setEnabled(s); options.fullScreen.setEnabled(s); diff --git a/java/com/tigervnc/vncviewer/F8Menu.java b/java/com/tigervnc/vncviewer/F8Menu.java index 5045b77f..472f11f8 100644 --- a/java/com/tigervnc/vncviewer/F8Menu.java +++ b/java/com/tigervnc/vncviewer/F8Menu.java @@ -36,12 +36,15 @@ public class F8Menu extends JPopupMenu implements ActionListener { setLightWeightPopupEnabled(false); cc = cc_; restore = addMenuItem("Restore",KeyEvent.VK_R); + restore.setEnabled(!cc.viewer.embed.getValue()); move = addMenuItem("Move"); move.setEnabled(false); size = addMenuItem("Size"); size.setEnabled(false); minimize = addMenuItem("Minimize", KeyEvent.VK_N); + minimize.setEnabled(!cc.viewer.embed.getValue()); maximize = addMenuItem("Maximize", KeyEvent.VK_X); + maximize.setEnabled(!cc.viewer.embed.getValue()); addSeparator(); exit = addMenuItem("Close Viewer", KeyEvent.VK_C); addSeparator(); |