File tigervnc-newfbsize.patch of Package tigervnc.openSUSE_Leap_42.1_Update

Index: tigervnc-1.5.0/vncviewer/CConn.cxx
===================================================================
--- tigervnc-1.5.0.orig/vncviewer/CConn.cxx
+++ tigervnc-1.5.0/vncviewer/CConn.cxx
@@ -427,6 +427,8 @@ void CConn::dataRect(const Rect& r, int
 
   if (encoding != encodingCopyRect)
     lastServerEncoding = encoding;
+  if (encoding == pseudoEncodingDesktopSize)
+    setDesktopSize( r.width(), r.height() );
 
   if (!Decoder::supported(encoding)) {
     // TRANSLATORS: Refers to a VNC protocol encoding type
openSUSE Build Service is sponsored by