summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
Diffstat (limited to 'unix')
-rw-r--r--unix/xserver/hw/vnc/XserverDesktop.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/unix/xserver/hw/vnc/XserverDesktop.cc b/unix/xserver/hw/vnc/XserverDesktop.cc
index 9554ed8d..f192b8a7 100644
--- a/unix/xserver/hw/vnc/XserverDesktop.cc
+++ b/unix/xserver/hw/vnc/XserverDesktop.cc
@@ -842,7 +842,11 @@ unsigned int XserverDesktop::setScreenLayout(int fb_width, int fb_height,
RRModePtr mode;
// Make sure all RandR tables are properly populated
+#ifdef XORG_15
ret = RRGetInfo(pScreen);
+#else
+ ret = RRGetInfo(pScreen, FALSE);
+#endif
if (!ret)
return resultNoResources;