VirtualBox

Ignore:
Timestamp:
Dec 9, 2010 7:59:27 PM (14 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvideo: another screen layout/mouse location issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c

    r34911 r34922  
    13431343    uint32_t cPrimary, cIndex;
    13441344    uint32_t cwReal, chReal;
    1345     int32_t cxRel, cyRel, cxReal, cyReal;
     1345    int32_t cxRel, cyRel, cxReal, cyReal, cxOld, cyOld;
    13461346
    13471347    TRACE_LOG("cDisplay=%u, cWidth=%u, cHeight=%u, x=%d, y=%d, displayWidth=%d\n",
    13481348              cDisplay, cWidth, cHeight, x, y, pScrn->displayWidth);
    1349     cPrimary = vboxGetPrimaryIndex(pScrn);
    1350     cIndex = vboxGetRealLocationIndex(pScrn, cDisplay);
    1351     if (   cDisplay == cPrimary
    1352         && (   x != pVBox->aScreenLocation[cDisplay].x
    1353             || y != pVBox->aScreenLocation[cDisplay].y))
    1354         fPrimaryMoved = TRUE;
     1349    cxOld = pVBox->aScreenLocation[cDisplay].cx;
     1350    cyOld = pVBox->aScreenLocation[cDisplay].cy;
    13551351    pVBox->aScreenLocation[cDisplay].cx = cWidth;
    13561352    pVBox->aScreenLocation[cDisplay].cy = cHeight;
    13571353    pVBox->aScreenLocation[cDisplay].x = x;
    13581354    pVBox->aScreenLocation[cDisplay].y = y;
     1355    cPrimary = vboxGetPrimaryIndex(pScrn);
     1356    cIndex = vboxGetRealLocationIndex(pScrn, cDisplay);
     1357    if (cDisplay == cPrimary && (x != cxOld || y != cyOld))
     1358        fPrimaryMoved = TRUE;
    13591359    cwReal = pVBox->aScreenLocation[cIndex].cx;
    13601360    chReal = pVBox->aScreenLocation[cIndex].cy;
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