Mercurial > hg > Applications > TreeVNC
changeset 194:b038aafeb2b0
hide VNC server's view to prevent video feed back.
author | oc |
---|---|
date | Thu, 26 Jun 2014 15:20:11 +0900 |
parents | 5e652f5404e3 |
children | a204b53a30c7 |
files | src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java Wed Jun 25 20:58:18 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java Thu Jun 26 15:20:11 2014 +0900 @@ -683,5 +683,9 @@ reconnecting = b; } + public int getReconnectingId() { + return reconnectingId; + } + }
--- a/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java Wed Jun 25 20:58:18 2014 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingRfbConnectionWorker.java Thu Jun 26 15:20:11 2014 +0900 @@ -120,7 +120,9 @@ myRfb.setProtocolContext(workingProtocol); workingProtocol.startNormalHandling(this,viewerWindow.getSurface(), clipboardController, myRfb); presenter.showMessage("Started"); - if (myRfb.hasViewer()) + + // hide VNC server's view to prevent video feed back. + if (myRfb.hasViewer() && myRfb.getReconnectingId() != 0) viewerWindow.setVisible(true); if(!myRfb.getCuiVersion()) presenter.successfulRfbConnection();