From 6f9a3d7019a9a03332fc3437527c66680516d708 Mon Sep 17 00:00:00 2001 From: Brian Hinz Date: Tue, 23 Aug 2011 22:56:31 +0000 Subject: [PATCH] prevent window artifact during clientRedirect 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } -- 2.39.5