We need to call RRGetInfo() again for our new mode to be added.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3740 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/unix/xserver/hw/vnc/XserverDesktop.cc b/unix/xserver/hw/vnc/XserverDesktop.cc
index d18ea27..d4965d8 100644
--- a/unix/xserver/hw/vnc/XserverDesktop.cc
+++ b/unix/xserver/hw/vnc/XserverDesktop.cc
@@ -863,6 +863,16 @@
     return resultNoResources;
   }
 
+  // Then we have to call RRGetInfo again for it to copy the RandR
+  // 1.0 information to the 1.2 structures.
+#ifdef XORG_15
+  ret = RRGetInfo(pScreen);
+#else
+  ret = RRGetInfo(pScreen, FALSE);
+#endif
+  if (!ret)
+    return resultNoResources;
+
   // Go via RandR to set the resolution in order for X11 notifications
   // to be sent out properly. We currently only do RandR 1.0, but Xorg
   // has dropped support for that API. So we have to emulate it via the