Mercurial > hg > Applications > TreeVNC
changeset 540:5812a47e293a
fix mouse behave
author | riono |
---|---|
date | Thu, 17 Oct 2019 19:05:41 +0900 |
parents | cb7c23cca231 |
children | 355954eac478 |
files | src/main/java/com/glavsoft/rfb/protocol/ProtocolSettings.java src/viewer_swing/java/com/glavsoft/viewer/CuiViewer.java src/viewer_swing/java/com/glavsoft/viewer/Viewer.java |
diffstat | 3 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/protocol/ProtocolSettings.java Thu Oct 17 18:12:27 2019 +0900 +++ b/src/main/java/com/glavsoft/rfb/protocol/ProtocolSettings.java Thu Oct 17 19:05:41 2019 +0900 @@ -105,7 +105,7 @@ private ProtocolSettings() { sharedFlag = true; - viewOnly = false; + viewOnly = true; showRemoteCursor = true; mouseCursorTrack = LocalPointer.ON; preferredEncoding = DEFAULT_PREFERRED_ENCODING;
--- a/src/viewer_swing/java/com/glavsoft/viewer/CuiViewer.java Thu Oct 17 18:12:27 2019 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/CuiViewer.java Thu Oct 17 19:05:41 2019 +0900 @@ -144,6 +144,7 @@ final boolean allowInteractive = allowAppletInteractiveConnections || !isApplet; ConnectionPresenter connectionPresenter = new ConnectionPresenter(hasJsch, allowInteractive); + connectionPresenter.setIsTreeVNC(true); connectionPresenter.addModel("ConnectionParamsModel", connectionParams); connectionPresenter.setConnectionWorkerFactory( new SwingConnectionWorkerFactory(null, passwordFromParams, connectionPresenter, null, myRfb));
--- a/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java Thu Oct 17 18:12:27 2019 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java Thu Oct 17 19:05:41 2019 +0900 @@ -230,6 +230,7 @@ final boolean hasJsch = checkJsch(); final boolean allowInteractive = allowAppletInteractiveConnections || ! isApplet; connectionPresenter = new ConnectionPresenter(hasJsch, allowInteractive); + connectionPresenter.setIsTreeVNC(isTreeVNC); connectionPresenter.setMulticast(useMulticast); connectionPresenter.setReconnectingId(myRfb.getId()); connectionPresenter.setNoConnection(noConnection);