VirtualBox

Ignore:
Timestamp:
Nov 25, 2009 4:53:42 PM (15 years ago)
Author:
vboxsync
Message:

Additions/common/VBoxGuestLib: don't accidentally re-enable the graphics capability when disabling seamless

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibSeamless.cpp

    r24320 r24968  
    3838 * @returns IPRT status value
    3939 * @param   fState whether or not we support seamless mode
    40  *
    41  * @todo    Currently this will trample over any other capabilities the guest may have.
    42  *          This will have to be fixed when more capabilities are added at the latest.
    4340 */
    4441VBGLR3DECL(int) VbglR3SeamlessSetCap(bool fState)
    4542{
    46     VMMDevReqGuestCapabilities vmmreqGuestCaps;
    47     int rc = VINF_SUCCESS;
    48 
    49     RT_ZERO(vmmreqGuestCaps);
    50     vmmdevInitRequest(&vmmreqGuestCaps.header, VMMDevReq_ReportGuestCapabilities);
    51     vmmreqGuestCaps.caps = fState ? VMMDEV_GUEST_SUPPORTS_SEAMLESS : 0;
    52     rc = vbglR3GRPerform(&vmmreqGuestCaps.header);
    53 #ifdef DEBUG /** @todo r=bird: Why the LogRel here? */
    54     if (RT_SUCCESS(rc))
    55         LogRel(("Successfully set the seamless capability on the host.\n"));
    56     else
    57         LogRel(("Failed to set the seamless capability on the host, rc = %Rrc.\n", rc));
    58 #endif
    59     return rc;
     43    if (fState)
     44        return VbglR3SetGuestCaps(VMMDEV_GUEST_SUPPORTS_SEAMLESS, 0);
     45    return VbglR3SetGuestCaps(0, VMMDEV_GUEST_SUPPORTS_SEAMLESS);
    6046}
    6147
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