aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com
diff options
context:
space:
mode:
authorBrian Hinz <bphinz@users.sourceforge.net>2011-08-23 22:56:31 +0000
committerBrian Hinz <bphinz@users.sourceforge.net>2011-08-23 22:56:31 +0000
commit6f9a3d7019a9a03332fc3437527c66680516d708 (patch)
treebdf0bd51fa0d2ddcaf94194d96f45483300ed319 /java/src/com
parent244ef4f23e7e694e85f7c4f96fe1bf163e412937 (diff)
downloadtigervnc-6f9a3d7019a9a03332fc3437527c66680516d708.tar.gz
tigervnc-6f9a3d7019a9a03332fc3437527c66680516d708.zip
prevent window artifact during clientRedirect
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4652 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java/src/com')
-rw-r--r--java/src/com/tigervnc/vncviewer/CConn.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/tigervnc/vncviewer/CConn.java b/java/src/com/tigervnc/vncviewer/CConn.java
index b19266f0..be6a8d81 100644
--- a/java/src/com/tigervnc/vncviewer/CConn.java
+++ b/java/src/com/tigervnc/vncviewer/CConn.java
@@ -457,7 +457,8 @@ public class CConn extends CConnection
}
viewport.addChild(desktop);
reconfigureViewport();
- viewport.setVisible(true);
+ if ((cp.width > 0) && (cp.height > 0))
+ viewport.setVisible(true);
desktop.initGraphics();
desktop.requestFocusInWindow();
}