VirtualBox

Ignore:
Timestamp:
May 31, 2022 10:40:51 AM (3 years ago)
Author:
vboxsync
Message:

Additions: X11: VBoxClient: pass to XRRDestroyMode only modes created by XRRCreateMode, bugref:10222.

File:
1 edited

Legend:

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

    r94978 r95145  
    13421342            x11Context.pXRRDestroyMode(x11Context.pDisplay, aPrevMode[outputId]);
    13431343#endif
    1344     }
    1345 
    1346     aPrevMode[outputId] = pModeInfo->id;
     1344        /* Forget destroyed mode. */
     1345        aPrevMode[outputId] = 0;
     1346    }
     1347
     1348    /* Only cache modes created "by us". XRRDestroyMode will complain if provided mode
     1349     * was not created by XRRCreateMode call. */
     1350    if (fNewMode)
     1351        aPrevMode[outputId] = pModeInfo->id;
    13471352
    13481353    if (paOutputs[iOutputIndex].fPrimary)
     
    14801485        if (!paOutputs[i].fEnabled)
    14811486            continue;
    1482         configureOutput(i, paOutputs);
     1487        if (configureOutput(i, paOutputs))
     1488            VBClLogInfo("output[%d] successfully configured\n", i);
     1489        else
     1490            VBClLogError("failed to configure output[%d]\n", i);
    14831491    }
    14841492    XSync(x11Context.pDisplay, False);
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