VirtualBox

Ignore:
Timestamp:
Aug 2, 2016 10:11:36 AM (8 years ago)
Author:
vboxsync
Message:

3D: report guest screen position to the host when the user rearranges screens in the guest. bugref:8450

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDisplay.cpp

    r62522 r62865  
    10111011        else
    10121012        {
     1013            // Checking once a second whether or not WM_DISPLAYCHANGED happened.
     1014            if (ASMAtomicXchgU32(&g_fGuestDisplaysChanged, 0))
     1015            {
     1016                // XPDM driver has VBoxDispDrvNotify to receive such a notifications
     1017                if (pCtx->pEnv->dispIf.enmMode >= VBOXDISPIF_MODE_WDDM)
     1018                {
     1019                    VBOXDISPIFESCAPE EscapeHdr = { 0 };
     1020                    EscapeHdr.escapeCode = VBOXESC_GUEST_DISPLAYCHANGED;
     1021
     1022                    DWORD err = VBoxDispIfEscapeInOut(&pCtx->pEnv->dispIf, &EscapeHdr, 0);
     1023                    LogFlowFunc(("VBoxDispIfEscapeInOut returned %d\n", err));
     1024                }
     1025            }
    10131026            /* sleep a bit to not eat too much CPU in case the above call always fails */
    10141027            RTThreadSleep(10);
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