Mercurial > hg > Applications > TreeVNC
changeset 110:464eb64e3fd6
minor fix.
author | oc |
---|---|
date | Fri, 23 May 2014 19:58:35 +0900 |
parents | 457f9dfbf7ce |
children | a7988d3c0266 |
files | src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java Fri May 23 19:37:37 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java Fri May 23 19:58:35 2014 +0900 @@ -132,7 +132,7 @@ continue; } } - } else { + } else if (b[0] == ClientToServerMessage.SERVER_CHANGE_REQUEST) { context.getWriter().write(b); } // System.out.println("client read "+c);
--- a/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Fri May 23 19:37:37 2014 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/swing/SwingViewerWindow.java Fri May 23 19:58:35 2014 +0900 @@ -824,7 +824,9 @@ @Override public void actionPerformed(ActionEvent e) { try { - //viewer.setCuiVersion(true); + // before change server, data from previous server + // should be stopped. + viewer.setCuiVersion(true); viewer.getRfb().screenChangeRequest(); } catch (TransportException e1) { }