]> source.dussan.org Git - tigervnc.git/commitdiff
prevent window artifact during clientRedirect
authorBrian Hinz <bphinz@users.sourceforge.net>
Tue, 23 Aug 2011 22:56:31 +0000 (22:56 +0000)
committerBrian Hinz <bphinz@users.sourceforge.net>
Tue, 23 Aug 2011 22:56:31 +0000 (22:56 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4652 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/src/com/tigervnc/vncviewer/CConn.java

index b19266f0963b01a10d8d5e78569f497563f7121f..be6a8d81dcf13f773805fbf095ac4b9c4a072521 100644 (file)
@@ -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();
   }