Changeset 89598 in vbox
- Timestamp:
- Jun 10, 2021 12:46:07 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp
r86887 r89598 499 499 int rc = VbglR3SeamlessSendMonitorPositions(cPositions, pPositions); 500 500 if (RT_SUCCESS(rc)) 501 VBClLog Error("Sending monitor positions (%u of them) to the host: %Rrc\n", cPositions, rc);501 VBClLogInfo("Sending monitor positions (%u of them) to the host: %Rrc\n", cPositions, rc); 502 502 else 503 503 VBClLogError("Error during sending monitor positions (%u of them) to the host: %Rrc\n", cPositions, rc); … … 538 538 for (int i = 0; i < iMonitorCount; ++i) 539 539 { 540 int iMonitorID = getMonitorIdFromName(XGetAtomName(x11Context.pDisplayRandRMonitoring, pMonitorInfo[i].name)) - 1;540 int iMonitorID = getMonitorIdFromName(XGetAtomName(x11Context.pDisplayRandRMonitoring, pMonitorInfo[i].name)); 541 541 if (iMonitorID >= x11Context.hOutputCount || iMonitorID == -1) 542 { 543 VBClLogInfo("queryMonitorPositions: skip monitor %d (id %d, %s) (w,h)=(%d,%d) (x,y)=(%d,%d)\n", 544 i, iMonitorID, XGetAtomName(x11Context.pDisplayRandRMonitoring, pMonitorInfo[i].name), 545 pMonitorInfo[i].width, pMonitorInfo[i].height, 546 pMonitorInfo[i].x, pMonitorInfo[i].y); 542 547 continue; 548 } 543 549 VBClLogInfo("Monitor %d (w,h)=(%d,%d) (x,y)=(%d,%d)\n", 544 550 i, … … 1061 1067 if (!event || newSize.width != (int)iXRes || newSize.height != (int)iYRes) 1062 1068 { 1063 VBClLogError("Resizing frame buffer to %d %d has failed\n", iXRes, iYRes); 1069 VBClLogError("Resizing frame buffer to %d %d has failed, current mode %d %d\n", 1070 iXRes, iYRes, newSize.width, newSize.height); 1064 1071 return false; 1065 1072 } … … 1210 1217 { 1211 1218 XUngrabServer(x11Context.pDisplay); 1219 XFlush(x11Context.pDisplay); 1212 1220 return; 1213 1221 } … … 1232 1240 VBClLogFatalError("Crtc disable failed %lu\n", pOutputInfo->crtc); 1233 1241 XUngrabServer(x11Context.pDisplay); 1242 XSync(x11Context.pDisplay, False); 1234 1243 #ifdef WITH_DISTRO_XRAND_XINERAMA 1235 1244 XRRFreeScreenResources(x11Context.pScreenResources); … … 1238 1247 x11Context.pXRRFreeScreenResources(x11Context.pScreenResources); 1239 1248 #endif 1249 XFlush(x11Context.pDisplay); 1240 1250 return; 1241 1251 } … … 1251 1261 { 1252 1262 XUngrabServer(x11Context.pDisplay); 1263 XSync(x11Context.pDisplay, False); 1253 1264 #ifdef WITH_DISTRO_XRAND_XINERAMA 1254 1265 XRRFreeScreenResources(x11Context.pScreenResources); … … 1257 1268 x11Context.pXRRFreeScreenResources(x11Context.pScreenResources); 1258 1269 #endif 1270 XFlush(x11Context.pDisplay); 1259 1271 return; 1260 1272 }
Note:
See TracChangeset
for help on using the changeset viewer.