diff src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java @ 97:44f5cdc63a76

don't create Rfb and VNC proxy on change server on root.
author oc
date Thu, 22 May 2014 19:45:59 +0900
parents 76e49dd9c9c5
children 8f4c45c1b396
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java	Thu May 22 17:42:31 2014 +0900
+++ b/src/main/java/jp/ac/u_ryukyu/treevnc/MyRfbProto.java	Thu May 22 19:45:59 2014 +0900
@@ -417,9 +417,9 @@
 
 	public void sendDesktopSizeChange() {
 		LinkedList<ByteBuffer> desktopSize = new LinkedList<ByteBuffer>();
-		int width = 0;
-		int height = 0;
-		desktopSize.add(new UpdateRectangleMessage(0,0, width , height, EncodingType.DESKTOP_SIZE).getMessage());
+		int width = context.getFbWidth();
+		int height = context.getFbHeight();
+		desktopSize.add(new UpdateRectangleMessage(0,0, width, height, EncodingType.DESKTOP_SIZE).getMessage());
 		multicastqueue.put(desktopSize);
 	}