VirtualBox

Ignore:
Timestamp:
Apr 13, 2015 9:09:37 AM (10 years ago)
Author:
vboxsync
Message:

Additions/x11/VBoxClient: watch for and remember display change events even when we cannot immediately handle them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/display.cpp

    r55191 r55202  
    8686/** Tell the VBoxGuest driver we no longer want any events and tell the host
    8787 * we no longer support any capabilities. */
    88 static int disableEventsAndCaps()
     88static int disableEventsAndCaps(bool fDisableEvents)
    8989{
    9090    int rc = VbglR3SetGuestCaps(0, VMMDEV_GUEST_SUPPORTS_GRAPHICS);
     
    9494    if (RT_FAILURE(rc))
    9595        VBClFatalError(("Failed to unset mouse status, rc=%Rrc.\n", rc));
    96     rc = VbglR3CtlFilterMask(0,  VMMDEV_EVENT_MOUSE_CAPABILITIES_CHANGED
    97                                 | VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST);
     96    if (fDisableEvents)
     97        rc = VbglR3CtlFilterMask(0, VMMDEV_EVENT_MOUSE_CAPABILITIES_CHANGED | VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST);
    9898    if (RT_FAILURE(rc))
    9999        VBClFatalError(("Failed to unset filter mask, rc=%Rrc.\n", rc));
     
    385385    if (!pSelf->mfInit)
    386386        return VERR_WRONG_ORDER;
    387     return disableEventsAndCaps();
     387    return disableEventsAndCaps(false);
    388388}
    389389
     
    400400{
    401401    NOREF(ppInterface);
    402     disableEventsAndCaps();
     402    disableEventsAndCaps(true);
    403403    VbglR3Term();
    404404}
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