Mercurial > hg > Applications > AliceVNC
changeset 13:0a44eb36cb1c
change timing setOnlyViewFlag
author | YU |
---|---|
date | Tue, 07 Oct 2014 15:51:46 +0900 |
parents | 66c06ebbced1 |
children | b175d5306b11 |
files | src/main/java/jp/ac/u_ryukyu/alicevnc/ReceiveServerInitMessage.java |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/alicevnc/ReceiveServerInitMessage.java Tue Sep 23 16:13:23 2014 +0900 +++ b/src/main/java/jp/ac/u_ryukyu/alicevnc/ReceiveServerInitMessage.java Tue Oct 07 15:51:46 2014 +0900 @@ -21,7 +21,6 @@ private Receiver info = ids.create(CommandType.PEEK); - public ReceiveServerInitMessage(){ info.setKey("ServerInitMessage"); } @@ -44,7 +43,7 @@ Viewer viewer = new Viewer(parser); SwingViewerWindowFactory viewerWindowFactory = new SwingViewerWindowFactory(true, false, viewer); ProtocolSettings settings = ProtocolSettings.getDefaultSettings(); - settings.setViewOnly(true); + Protocol context = new Protocol(null, null, null, settings); context.setMessageQueue(new MyMessageQueue()); @@ -58,7 +57,6 @@ AliceVNCMessage message = new AliceVNCMessage(); message.setServerInitMessage(serverInitMessage); - ods.put("AliceVNCInitMessage", message); } else { AliceVNCMessage message = info.asClass(AliceVNCMessage.class); @@ -74,6 +72,7 @@ context.setRemoteDesktopName(name); SwingViewerWindow viewerWindow = viewerWindowFactory.createViewerWindow(context, settings, viewer.getUiSettings(), null, null); + settings.setViewOnly(true); IRepaintController repaintController = viewerWindow.getSurface(); Renderer renderer = repaintController.createRenderer(null, width, height, context.getPixelFormat()); RenderAndControllerHolder holder = new RenderAndControllerHolder(renderer, repaintController);