diff options
author | Pierre Ossman <ossman@cendio.se> | 2009-04-02 14:47:31 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2009-04-02 14:47:31 +0000 |
commit | 8a2eadf61d312a74d725d79d2bbec53a2d4b90c3 (patch) | |
tree | 191a014b408e17c5b76962bef009f2eb52b29b35 | |
parent | f7705c1c8c1c4797b6f55f7aaa648e77a0db4311 (diff) | |
download | tigervnc-8a2eadf61d312a74d725d79d2bbec53a2d4b90c3.tar.gz tigervnc-8a2eadf61d312a74d725d79d2bbec53a2d4b90c3.zip |
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
-rw-r--r-- | unix/xserver/hw/vnc/XserverDesktop.cc | 10 |
1 files changed, 10 insertions, 0 deletions
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 |