VirtualBox

Changeset 27214 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Mar 9, 2010 1:15:08 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
58587
Message:

Windows guest additions: fixed showpointer processing in multimonitor case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp

    r27205 r27214  
    19911991    BOOLEAN Result = TRUE;
    19921992
    1993     if (DEV_MOUSE_HIDDEN((PDEVICE_EXTENSION)HwDeviceExtension))
     1993    /* Use primary device extension, because the show pointer request should be processed
     1994     * in vboxUpdatePointerShape regardless of the device. */
     1995    PDEVICE_EXTENSION PrimaryExtension = ((PDEVICE_EXTENSION)HwDeviceExtension)->pPrimary;
     1996    if (DEV_MOUSE_HIDDEN(PrimaryExtension))
    19941997    {
    19951998        // tell the host to use the guest's pointer
     
    20042007        Result = vboxUpdatePointerShape(&PointerAttributes, sizeof (PointerAttributes));
    20052008#else
    2006         Result = vboxUpdatePointerShape((PDEVICE_EXTENSION)HwDeviceExtension, &PointerAttributes, sizeof (PointerAttributes));
     2009        Result = vboxUpdatePointerShape(PrimaryExtension, &PointerAttributes, sizeof (PointerAttributes));
    20072010#endif /* VBOX_WITH_HGSMI */
    20082011
    20092012        if (Result)
    2010             DEV_SET_MOUSE_SHOWN((PDEVICE_EXTENSION)HwDeviceExtension);
     2013            DEV_SET_MOUSE_SHOWN(PrimaryExtension);
    20112014        else
    20122015            dprintf(("VBoxVideo::ShowPointer: Could not show the hardware pointer -> fallback\n"));
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette