VirtualBox

Changeset 94903 in vbox


Ignore:
Timestamp:
May 6, 2022 7:07:33 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
151309
Message:

Additions: X11: fix guest screen handling in multi-monitor setup, bugref:9637, bugref:10222.

This commit restores guest screen count calculation in VBoxVGA and VBoxSVGA graphics configuration.
This in turn resolves the issue with improper mouse pointer positioning on screen 0 under certain
circumstances when guest is running multi-monitor setup.

File:
1 edited

Legend:

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

    r94770 r94903  
    10701070        x11Context.pScreenResources = x11Context.pXRRGetScreenResources(x11Context.pDisplay, x11Context.rootWindow);
    10711071#endif
    1072     /* Currently without the VMWARE_CTRL extension we cannot connect outputs and set outputs' preferred mode.
    1073      * So we set the output count to 1 to get the 1st output position correct. */
    1074     x11Context.hOutputCount = x11Context.fWmwareCtrlExtention ? determineOutputCount() : 1;
     1072    x11Context.hOutputCount = RT_VALID_PTR(x11Context.pScreenResources) ? determineOutputCount() : 0;
    10751073#ifdef WITH_DISTRO_XRAND_XINERAMA
    10761074    XRRFreeScreenResources(x11Context.pScreenResources);
     
    13781376        x11Context.pScreenResources = x11Context.pXRRGetScreenResources(x11Context.pDisplay, x11Context.rootWindow);
    13791377#endif
    1380     x11Context.hOutputCount = x11Context.fWmwareCtrlExtention ? determineOutputCount() : 1;
    1381 
     1378
     1379    x11Context.hOutputCount = RT_VALID_PTR(x11Context.pScreenResources) ? determineOutputCount() : 0;
    13821380    if (!x11Context.pScreenResources)
    13831381    {
Note: See TracChangeset for help on using the changeset viewer.

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