Mercurial > hg > Applications > TreeVNC
diff src/main/java/com/glavsoft/rfb/client/FramebufferUpdateRequestMessage.java @ 448:344a35b7c47f
send both frame buffer size and selected screen size in Disktop size change (INIT_DATA)
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 18 Jun 2016 20:09:46 +0900 |
parents | a931be447973 |
children | d5bcae14c2cd |
line wrap: on
line diff
--- a/src/main/java/com/glavsoft/rfb/client/FramebufferUpdateRequestMessage.java Fri Jun 17 17:06:22 2016 +0900 +++ b/src/main/java/com/glavsoft/rfb/client/FramebufferUpdateRequestMessage.java Sat Jun 18 20:09:46 2016 +0900 @@ -24,15 +24,14 @@ package com.glavsoft.rfb.client; +import com.glavsoft.exceptions.TransportException; +import com.glavsoft.transport.Writer; + import java.util.Timer; import java.util.TimerTask; -import com.glavsoft.exceptions.TransportException; -import com.glavsoft.transport.Writer; - public class FramebufferUpdateRequestMessage implements ClientToServerMessage { - private final boolean incremental; private final int height; private final int width; private final int y; @@ -41,12 +40,12 @@ private boolean sendFullScreenFlag; public FramebufferUpdateRequestMessage(int x, int y, int width, - int height, boolean incremental) { + int height, boolean fullScreen) { this.x = x; this.y = y; this.width = width; this.height = height; - this.incremental = incremental; + this.sendFullScreenFlag = fullScreen; // sendFullScreenRequest(); } @@ -70,9 +69,14 @@ public String toString() { return "FramebufferUpdateRequestMessage: [x: " + x + " y: " + y + " width: " + width + " height: " + height + - " incremental: " + incremental + "]"; + " fullScreen: " + sendFullScreenFlag + "]"; } - + + /** + * start send full screen request timer + * it is periodically executed + * there is no way to stop this + */ public void sendFullScreenRequest() { int sendFullScreenTimer = 5 * 1000; TimerTask tt = new TimerTask() {