Changeset 59943 in vbox for trunk/src/VBox/Additions/x11
- Timestamp:
- Mar 7, 2016 3:46:54 PM (9 years ago)
- Location:
- trunk/src/VBox/Additions/x11
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/display.cpp
r59595 r59943 132 132 char szCommand[256]; 133 133 int status; 134 Atom atomDummy;135 int iDummy;136 unsigned long ulDummy;137 unsigned char *pcDummy;138 134 139 135 /* Initialise the guest library. */ … … 143 139 pState->pDisplay = XOpenDisplay(NULL); 144 140 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; 152 142 pState->fHaveRandR12 = false; 153 143 pState->pcszXrandr = "xrandr"; -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
r59595 r59943 1162 1162 } 1163 1163 1164 #define DRIVER_ATOM_NAME "VBOXVIDEO_DRIVER"1165 /* The memory storing the initial value of the XFree86_has_VT root window1166 * property. This has to remain available until server start-up, so we just1167 * use a global. */1168 static CARD32 InitialPropertyValue = 1;1169 1170 /** Initialise a property on the root window to say that our driver is running1171 * 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 1182 1164 /* 1183 1165 * QUOTE from the XFree86 DESIGN document: … … 1367 1349 "Unable to start the VirtualBox mouse pointer integration with the host system.\n"); 1368 1350 1369 initialiseProperty(pScrn);1370 1371 1351 return (TRUE); 1372 1352 }
Note:
See TracChangeset
for help on using the changeset viewer.