VirtualBox

Ignore:
Timestamp:
Oct 7, 2020 2:33:09 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
140777
Message:

bugref:9637. Exit the resizing client if randr extension version is 1.3 or smaller

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp

    r86459 r86469  
    903903    x11Context.fWmwareCtrlExtention = false;
    904904    x11Context.fMonitorInfoAvailable = false;
     905    x11Context.hRandRMajor = 0;
     906    x11Context.hRandRMinor = 0;
    905907
    906908    int dummy;
     
    952954            return;
    953955        }
     956        if (x11Context.hRandRMajor < 1 || x11Context.hRandRMinor <= 3)
     957        {
     958            VBClLogFatalError("Resizing service requires libXrandr Version >= 1.4. Detected version is %d.%d\n", x11Context.hRandRMajor, x11Context.hRandRMinor);
     959            XCloseDisplay(x11Context.pDisplay);
     960            x11Context.pDisplay = NULL;
     961            return;
     962        }
    954963    }
    955964    x11Context.rootWindow = DefaultRootWindow(x11Context.pDisplay);
     
    10241033                                           CurrentTime, 0, 0, None, RR_Rotate_0, NULL, 0);
    10251034#endif
     1035    /** @todo  In case of unsuccesful crtc config set  we have to revert frame buffer size and crtc sizes. */
    10261036    if (ret == Success)
    10271037        return true;
     
    10981108#endif
    10991109    XRRScreenSize newSize = currentSize();
    1100     /** @todo  In case of unsuccesful frame buffer resize we have to revert frame buffer size and crtc sizes. */
     1110
    11011111    if (!event || newSize.width != (int)iXRes || newSize.height != (int)iYRes)
    11021112    {
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