VirtualBox

Changeset 83140 in vbox for trunk


Ignore:
Timestamp:
Feb 21, 2020 10:55:34 PM (5 years ago)
Author:
vboxsync
Message:

bugref:9637. build fix. ifdef'ing some code for now until we decide what to do with build machines with old libXranr library.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/display-svga-x11.cpp

    r83139 r83140  
    6666static bool g_fMonitorThreadShutdown = false;
    6767
     68#define OLD_JUNK
     69
    6870struct X11VMWRECT /* xXineramaScreenInfo in Xlib headers. */
    6971{
     
    117119static int determineOutputCount();
    118120
     121
     122#ifndef OLD_JUNK
    119123/** This function assumes monitors are named as from Virtual1 to VirtualX. */
    120124static int getMonitorIdFromName(const char *sMonitorName)
     
    140144static void queryMonitorPositions()
    141145{
    142     printf("===========================================================================================================================================");
    143146    static const int iSentinelPosition = -1;
    144147    if (mpMonitorPositions)
     
    147150        mpMonitorPositions = NULL;
    148151    }
    149     // if (!mHostMonitorPositionSendCallback)
    150     // {
    151     //     VBClLogFatalError("No monitor positions update callback\n");
    152     //     return;
    153     // }
    154152
    155153    XRRScreenResources *pScreenResources = XRRGetScreenResources (x11Context.pDisplay, DefaultRootWindow(x11Context.pDisplay));
     
    188186    XRRFreeMonitors(pMonitorInfo);
    189187}
     188#endif
    190189
    191190static void monitorRandREvents()
    192191{
     192#ifndef OLD_JUNK
    193193    XEvent event;
    194194    XNextEvent(x11Context.pDisplay, &event);
     
    207207            break;
    208208    }
     209#endif
    209210}
    210211
     
    307308        x11Context.pDisplay = NULL;
    308309    }
     310    x11Context.hEventMask = 0;
     311#ifndef OLD_JUNK
    309312    x11Context.hEventMask = RRScreenChangeNotifyMask;
    310313    if (x11Context.hRandRMinor >= 2)
     
    312315                               | RROutputChangeNotifyMask
    313316                               | RROutputPropertyNotifyMask;
     317#endif
    314318    x11Context.rootWindow = DefaultRootWindow(x11Context.pDisplay);
    315319    x11Context.hOutputCount = determineOutputCount();
     
    571575        VBClLogFatalError("Failed to register resizing support, rc=%Rrc\n", rc);
    572576
    573     int eventMask = RRScreenChangeNotifyMask;
    574     if (x11Context.hRandRMinor >= 2)
    575         eventMask |= RRCrtcChangeNotifyMask
    576                    | RROutputChangeNotifyMask
    577                    | RROutputPropertyNotifyMask;
    578     if (x11Context.hRandRMinor >= 4)
    579         eventMask |= RRProviderChangeNotifyMask
    580                    | RRProviderPropertyNotifyMask
    581                    | RRResourceChangeNotifyMask;
    582577    for (;;)
    583578    {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette