- Timestamp:
- Feb 21, 2020 10:55:34 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp
r83139 r83140 66 66 static bool g_fMonitorThreadShutdown = false; 67 67 68 #define OLD_JUNK 69 68 70 struct X11VMWRECT /* xXineramaScreenInfo in Xlib headers. */ 69 71 { … … 117 119 static int determineOutputCount(); 118 120 121 122 #ifndef OLD_JUNK 119 123 /** This function assumes monitors are named as from Virtual1 to VirtualX. */ 120 124 static int getMonitorIdFromName(const char *sMonitorName) … … 140 144 static void queryMonitorPositions() 141 145 { 142 printf("===========================================================================================================================================");143 146 static const int iSentinelPosition = -1; 144 147 if (mpMonitorPositions) … … 147 150 mpMonitorPositions = NULL; 148 151 } 149 // if (!mHostMonitorPositionSendCallback)150 // {151 // VBClLogFatalError("No monitor positions update callback\n");152 // return;153 // }154 152 155 153 XRRScreenResources *pScreenResources = XRRGetScreenResources (x11Context.pDisplay, DefaultRootWindow(x11Context.pDisplay)); … … 188 186 XRRFreeMonitors(pMonitorInfo); 189 187 } 188 #endif 190 189 191 190 static void monitorRandREvents() 192 191 { 192 #ifndef OLD_JUNK 193 193 XEvent event; 194 194 XNextEvent(x11Context.pDisplay, &event); … … 207 207 break; 208 208 } 209 #endif 209 210 } 210 211 … … 307 308 x11Context.pDisplay = NULL; 308 309 } 310 x11Context.hEventMask = 0; 311 #ifndef OLD_JUNK 309 312 x11Context.hEventMask = RRScreenChangeNotifyMask; 310 313 if (x11Context.hRandRMinor >= 2) … … 312 315 | RROutputChangeNotifyMask 313 316 | RROutputPropertyNotifyMask; 317 #endif 314 318 x11Context.rootWindow = DefaultRootWindow(x11Context.pDisplay); 315 319 x11Context.hOutputCount = determineOutputCount(); … … 571 575 VBClLogFatalError("Failed to register resizing support, rc=%Rrc\n", rc); 572 576 573 int eventMask = RRScreenChangeNotifyMask;574 if (x11Context.hRandRMinor >= 2)575 eventMask |= RRCrtcChangeNotifyMask576 | RROutputChangeNotifyMask577 | RROutputPropertyNotifyMask;578 if (x11Context.hRandRMinor >= 4)579 eventMask |= RRProviderChangeNotifyMask580 | RRProviderPropertyNotifyMask581 | RRResourceChangeNotifyMask;582 577 for (;;) 583 578 {
Note:
See TracChangeset
for help on using the changeset viewer.