VirtualBox

Changeset 91962 in vbox for trunk/src


Ignore:
Timestamp:
Oct 21, 2021 3:20:29 PM (3 years ago)
Author:
vboxsync
Message:

Additions: X11: partly revert r147454, bugref:10120.

Restore screens xorigin adjustments introduced in r136057.
Keep posibillity to set primary screen with VBoxManage.

File:
1 edited

Legend:

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

    r91716 r91962  
    14391439            /* Create a whole topology and send it to xrandr. */
    14401440            struct RANDROUTPUT aOutputs[VMW_MAX_HEADS];
     1441            int iRunningX = 0;
    14411442            for (int j = 0; j < x11Context.hOutputCount; ++j)
    14421443            {
    1443                 aOutputs[j].x = aMonitors[j].xOrigin;
     1444                aOutputs[j].x = iRunningX;
    14441445                aOutputs[j].y = aMonitors[j].yOrigin;
    14451446                aOutputs[j].width = aMonitors[j].cx;
     
    14471448                aOutputs[j].fEnabled = !(aMonitors[j].fDisplayFlags & VMMDEV_DISPLAY_DISABLED);
    14481449                aOutputs[j].fPrimary = (aMonitors[j].fDisplayFlags & VMMDEV_DISPLAY_PRIMARY);
     1450                if (aOutputs[j].fEnabled)
     1451                    iRunningX += aOutputs[j].width;
    14491452            }
    14501453            /* In 32-bit guests GAs build on our release machines causes an xserver lock during vmware_ctrl extention
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