diff options
author | Brian Hinz <bphinz@users.sourceforge.net> | 2011-08-23 22:56:31 +0000 |
---|---|---|
committer | Brian Hinz <bphinz@users.sourceforge.net> | 2011-08-23 22:56:31 +0000 |
commit | 6f9a3d7019a9a03332fc3437527c66680516d708 (patch) | |
tree | bdf0bd51fa0d2ddcaf94194d96f45483300ed319 /java/src/com | |
parent | 244ef4f23e7e694e85f7c4f96fe1bf163e412937 (diff) | |
download | tigervnc-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.java | 3 |
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(); } |