From 8a2eadf61d312a74d725d79d2bbec53a2d4b90c3 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 2 Apr 2009 14:47:31 +0000 Subject: [PATCH] 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 --- unix/xserver/hw/vnc/XserverDesktop.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/unix/xserver/hw/vnc/XserverDesktop.cc b/unix/xserver/hw/vnc/XserverDesktop.cc index d18ea270..d4965d85 100644 --- a/unix/xserver/hw/vnc/XserverDesktop.cc +++ b/unix/xserver/hw/vnc/XserverDesktop.cc @@ -863,6 +863,16 @@ unsigned int XserverDesktop::setScreenLayout(int fb_width, int fb_height, 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 -- 2.39.5