VirtualBox

Ignore:
Timestamp:
Apr 28, 2020 7:31:23 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137597
Message:

bugref:9637. Calling vmware_ctrl extension at each resize iteration. sets the preferred mode of each output to required size thereby solving kscreen mess in KDE by side effect.

File:
1 edited

Legend:

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

    r84025 r84026  
    621621}
    622622
    623 static bool callVMWCTRL()
    624 {
    625     const int hHeight = 600;
    626     const int hWidth = 800;
     623static bool callVMWCTRL(struct RANDROUTPUT *paOutputs)
     624{
     625    int hHeight = 600;
     626    int hWidth = 800;
    627627
    628628    xXineramaScreenInfo *extents = (xXineramaScreenInfo *)malloc(x11Context.hOutputCount * sizeof(xXineramaScreenInfo));
     
    632632    for (int i = 0; i < x11Context.hOutputCount; ++i)
    633633    {
     634        if (paOutputs[i].fEnabled)
     635        {
     636            hHeight = paOutputs[i].height;
     637            hWidth = paOutputs[i].width;
     638        }
     639        else
     640        {
     641            hHeight = 0;
     642            hWidth = 0;
     643        }
    634644        extents[i].x_org = hRunningOffset;
    635645        extents[i].y_org = 0;
     
    648658    if (x11Context.pDisplay == NULL)
    649659        return false;
    650     callVMWCTRL();
    651660    if (RT_FAILURE(startX11MonitorThread()))
    652661        return false;
     
    11171126
    11181127    XGrabServer(x11Context.pDisplay);
    1119 
     1128    callVMWCTRL(paOutputs);
    11201129    /* Disable crtcs. */
    11211130    for (int i = 0; i < x11Context.pScreenResources->noutput; ++i)
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