VirtualBox

vbox的更動 59943 路徑 trunk/src/VBox/Additions


忽略:
時間撮記:
2016-3-7 下午03:46:54 (9 年 以前)
作者:
vboxsync
訊息:

bugref:8087: Additions/x11: support non-root X server: revert r105407: 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.

位置:
trunk/src/VBox/Additions/x11
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Additions/x11/VBoxClient/display.cpp

    r59595 r59943  
    132132    char szCommand[256];
    133133    int status;
    134     Atom atomDummy;
    135     int iDummy;
    136     unsigned long ulDummy;
    137     unsigned char *pcDummy;
    138134
    139135    /* Initialise the guest library. */
     
    143139    pState->pDisplay = XOpenDisplay(NULL);
    144140    if (!pState->pDisplay)
    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);
     141        return VERR_NOT_FOUND;
    152142    pState->fHaveRandR12 = false;
    153143    pState->pcszXrandr = "xrandr";
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c

    r59595 r59943  
    11621162}
    11631163
    1164 #define DRIVER_ATOM_NAME "VBOXVIDEO_DRIVER"
    1165 /* The memory storing the initial value of the XFree86_has_VT root window
    1166  * property.  This has to remain available until server start-up, so we just
    1167  * use a global. */
    1168 static CARD32 InitialPropertyValue = 1;
    1169 
    1170 /** Initialise a property on the root window to say that our driver is running
    1171  *  for the benefit of VBoxClient. */
    1172 static void initialiseProperty(ScrnInfoPtr pScrn)
    1173 {
    1174     Atom atom = -1;
    1175     CARD32 *PropertyValue = &InitialPropertyValue;
    1176     atom = MakeAtom(DRIVER_ATOM_NAME, sizeof(DRIVER_ATOM_NAME) - 1, TRUE);
    1177     if (xf86RegisterRootWindowProperty(pScrn->scrnIndex, atom, XA_INTEGER,
    1178                                        32, 1, PropertyValue) != Success)
    1179         FatalError("vboxvideo: failed to register driver root window property\n");
    1180 }
    1181 
    11821164/*
    11831165 * QUOTE from the XFree86 DESIGN document:
     
    13671349                   "Unable to start the VirtualBox mouse pointer integration with the host system.\n");
    13681350
    1369     initialiseProperty(pScrn);
    1370 
    13711351    return (TRUE);
    13721352}
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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