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

Index: tigervnc-1.6.0/vncviewer/CConn.cxx
===================================================================
--- tigervnc-1.6.0.orig/vncviewer/CConn.cxx
+++ tigervnc-1.6.0/vncviewer/CConn.cxx
@@ -438,6 +438,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