Changeset 86078 in vbox for trunk/src/VBox/Additions/x11/VBoxClient
- Timestamp:
- Sep 9, 2020 4:04:00 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp
r85976 r86078 744 744 } 745 745 746 static bool startDRMClient() 747 { 748 char* argv[] = {NULL}; 749 char* env[] = {NULL}; 750 char szDRMClientPath[RTPATH_MAX]; 751 RTPathExecDir(szDRMClientPath, RTPATH_MAX); 752 RTPathAppend(szDRMClientPath, RTPATH_MAX, "VBoxDRMClient"); 753 VBClLogInfo("Starting DRM client.\n"); 754 int rc = execve(szDRMClientPath, argv, env); 755 if (rc == -1) 756 VBClLogFatalError("execve for % returns the following error %d %s\n", szDRMClientPath, errno, strerror(errno)); 757 /* This is reached only when execve fails. */ 758 return false; 759 } 760 746 761 static bool init() 747 762 { … … 753 768 } 754 769 if (isXwayland()) 755 { 756 char* argv[] = {NULL}; 757 char* env[] = {NULL}; 758 char szDRMClientPath[RTPATH_MAX]; 759 RTPathExecDir(szDRMClientPath, RTPATH_MAX); 760 RTPathAppend(szDRMClientPath, RTPATH_MAX, "VBoxDRMClient"); 761 int rc = execve(szDRMClientPath, argv, env); 762 if (rc == -1) 763 VBClLogFatalError("execve for % returns the following error %d %s\n", szDRMClientPath, errno, strerror(errno)); 764 /* This is reached only when execve fails. */ 765 return false; 766 } 770 return startDRMClient(); 771 767 772 x11Connect(); 768 773 if (x11Context.pDisplay == NULL) … … 1225 1230 { 1226 1231 XGrabServer(x11Context.pDisplay); 1227 /* In 32-bit guests GAs build on our release machines causes an xserver lock during vmware_ctrl extention1228 * if we do the call withing XGrab. So we disabled this call for 32-bit GAs. */1229 #if ARCH_BITS != 321230 1232 if (x11Context.fWmwareCtrlExtention) 1231 1233 callVMWCTRL(paOutputs); 1232 #endif 1234 1233 1235 #ifdef WITH_DISTRO_XRAND_XINERAMA 1234 1236 x11Context.pScreenResources = XRRGetScreenResources(x11Context.pDisplay, x11Context.rootWindow); … … 1326 1328 { 1327 1329 RT_NOREF(ppInterface, fDaemonised); 1330 1331 /* In 32-bit guests GAs build on our release machines causes an xserver hang. 1332 * So for 32-bit GAs we use our DRM client. */ 1333 #if ARCH_BITS == 32 1334 startDRMClient(); 1335 return VERR_NOT_AVAILABLE; 1336 #endif 1337 1328 1338 if (!init()) 1329 1339 return VERR_NOT_AVAILABLE;
Note:
See TracChangeset
for help on using the changeset viewer.