VirtualBox

Changeset 83257 in vbox


Ignore:
Timestamp:
Mar 11, 2020 12:42:35 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
136406
Message:

bugref:9637. Adding a few alternative library names for libXrandr.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

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

    r83253 r83257  
    406406static int openLibRandR()
    407407{
    408     x11Context.pRandLibraryHandle = dlopen("/usr/lib/x86_64-linux-gnu/libXrandr.so", RTLD_LAZY /*| RTLD_LOCAL */);
    409 
     408    x11Context.pRandLibraryHandle = dlopen("libXrandr.so", RTLD_LAZY /*| RTLD_LOCAL */);
    410409    if (!x11Context.pRandLibraryHandle)
    411     {
    412         VBClLogFatalError("Could not locate libXranr for dlopen\n");
     410        x11Context.pRandLibraryHandle = dlopen("libXrandr.so.2", RTLD_LAZY /*| RTLD_LOCAL */);
     411    if (!x11Context.pRandLibraryHandle)
     412        x11Context.pRandLibraryHandle = dlopen("libXrandr.so.2.2.0", RTLD_LAZY /*| RTLD_LOCAL */);
     413
     414    if (!x11Context.pRandLibraryHandle)
     415    {
     416        VBClLogFatalError("Could not locate libXrandr for dlopen\n");
    413417        return VERR_NOT_FOUND;
    414418    }
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r83142 r83257  
    12891289{
    12901290    AssertMsgReturn(pPosition, ("Empty monitor position array\n"), E_INVALIDARG);
     1291    for (unsigned i = 0; i < cPositions; ++i)
     1292        LogRel2(("Display::i_handleUpdateMonitorPositions: uScreenId=%d xOrigin=%d yOrigin=%dX\n",
     1293                 i, pPosition[i].x, pPosition[i].y));
     1294
    12911295    if (mpDrv && mpDrv->pUpPort->pfnReportMonitorPositions)
    12921296        mpDrv->pUpPort->pfnReportMonitorPositions(mpDrv->pUpPort, cPositions, pPosition);
Note: See TracChangeset for help on using the changeset viewer.

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