VirtualBox

Ignore:
Timestamp:
Feb 5, 2016 2:06:44 PM (9 years ago)
Author:
vboxsync
Message:

bugref:8087: Additions/x11: support non-root X server: do not start the display part of VBoxClient at all when not using the user space X.Org vboxvideo driver: all guest systems capable of running the kernel driver should already have equivalent functionality.

File:
1 edited

Legend:

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

    r57416 r59595  
    132132    char szCommand[256];
    133133    int status;
     134    Atom atomDummy;
     135    int iDummy;
     136    unsigned long ulDummy;
     137    unsigned char *pcDummy;
    134138
    135139    /* Initialise the guest library. */
     
    139143    pState->pDisplay = XOpenDisplay(NULL);
    140144    if (!pState->pDisplay)
    141         return VERR_NOT_FOUND;
     145        exit(0);
     146    XGetWindowProperty(pState->pDisplay, DefaultRootWindow(pState->pDisplay),
     147                       XInternAtom(pState->pDisplay, "VBOXVIDEO_DRIVER", 0), 0, 1, False,
     148                       AnyPropertyType, &atomDummy, &iDummy, &ulDummy, &ulDummy, &pcDummy);
     149    if (pcDummy == NULL)
     150        exit(0);
     151    XFree(pcDummy);
    142152    pState->fHaveRandR12 = false;
    143153    pState->pcszXrandr = "xrandr";
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