VirtualBox

Changeset 22272 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 14, 2009 8:46:25 PM (15 years ago)
Author:
vboxsync
Message:

Devices/VMMDev: reset all guest mouse capabilities on device reset

Location:
trunk/src/VBox/Devices/VMMDev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VMMDev.cpp

    r22271 r22272  
    24812481
    24822482    /*
    2483      * Reset the mouse integration feature bit
     2483     * Reset the mouse integration feature bits
    24842484     */
    2485     if (pThis->mouseCapabilities & (VMMDEV_MOUSE_GUEST_CAN_ABSOLUTE|VMMDEV_MOUSE_GUEST_NEEDS_HOST_CURSOR))
    2486     {
    2487         pThis->mouseCapabilities &= ~VMMDEV_MOUSE_GUEST_CAN_ABSOLUTE;
     2485    if (pThis->mouseCapabilities & VMMDEV_MOUSE_GUEST_MASK)
     2486    {
     2487        pThis->mouseCapabilities &= ~VMMDEV_MOUSE_GUEST_MASK;
    24882488        /* notify the connector */
    24892489        Log(("vmmdevReset: capabilities changed (%x), informing connector\n", pThis->mouseCapabilities));
  • trunk/src/VBox/Devices/VMMDev/VMMDevState.h

    r22271 r22272  
    3838    uint32_t hypervisorSize;
    3939
    40     /** bit 0: guest capability (1 == wants), bit 1: flag value has changed */
    41     /** bit 2: host capability (1 == wants), bit 3: flag value has changed */
     40    /** mouse capabilities of host and guest */
    4241    uint32_t mouseCapabilities;
    4342    /** absolute mouse position in pixels */
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