VirtualBox

Ignore:
Timestamp:
Apr 23, 2015 8:08:25 PM (10 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvideo: do not set the virtual resolution too early to avoid triggering a problem in old RandR versions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c

    r55402 r55413  
    10541054    if (cx != 0 && cy != 0)
    10551055    {
    1056         if (fLimitedContext)
    1057         {
    1058             pScrn->virtualX = cx;
    1059             pScrn->virtualY = cy;
    1060         }
    1061         else
     1056        /* Do not set the virtual resolution in limited context as that can
     1057         * cause problems setting up RandR 1.2 which needs it set to the
     1058         * maximum size at this point. */
     1059        if (!fLimitedContext)
    10621060        {
    10631061            TRACE_LOG("cx=%u, cy=%u\n", cx, cy);
     
    11051103    VBOXPtr pVBox = VBOXGetRec(pScrn);
    11061104
     1105    if (!fLimitedContext)
     1106    {
    11071107# if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 5
    1108     RRGetInfo(xf86ScrnToScreen(pScrn), TRUE);
     1108        RRGetInfo(xf86ScrnToScreen(pScrn), TRUE);
    11091109# else
    1110     RRGetInfo(xf86ScrnToScreen(pScrn));
     1110        RRGetInfo(xf86ScrnToScreen(pScrn));
    11111111# endif
     1112    }
    11121113    setVirtualSizeRandR12(pScrn, fLimitedContext);
    11131114    setScreenSizesRandR12(pScrn, fLimitedContext);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette