Changeset 86459 in vbox for trunk/src/VBox/Additions/x11/VBoxClient
- Timestamp:
- Oct 6, 2020 3:11:43 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp
r86078 r86459 129 129 int hRandRErrorBase; 130 130 int hEventMask; 131 bool fMonitorInfoAvailable; 131 132 /** The number of outputs (monitors, including disconnect ones) xrandr reports. */ 132 133 int hOutputCount; … … 773 774 if (x11Context.pDisplay == NULL) 774 775 return false; 775 if (RT_FAILURE(startX11MonitorThread())) 776 return false; 776 /* don't start the monitoring thread if related randr functionality is not available. */ 777 if (x11Context.fMonitorInfoAvailable) 778 if (RT_FAILURE(startX11MonitorThread())) 779 return false; 777 780 return true; 778 781 } … … 834 837 *(void **)(&x11Context.pXRRFreeMonitors) = dlsym(x11Context.pRandLibraryHandle, "XRRFreeMonitors"); 835 838 checkFunctionPtr(x11Context.pXRRFreeMonitors); 839 840 x11Context.fMonitorInfoAvailable = x11Context.pXRRGetMonitors && x11Context.pXRRFreeMonitors; 836 841 837 842 *(void **)(&x11Context.pXRRGetScreenResources) = dlsym(x11Context.pRandLibraryHandle, "XRRGetScreenResources"); … … 897 902 x11Context.pXRRAddOutputMode = NULL; 898 903 x11Context.fWmwareCtrlExtention = false; 904 x11Context.fMonitorInfoAvailable = false; 899 905 900 906 int dummy;
Note:
See TracChangeset
for help on using the changeset viewer.