Changeset 55202 in vbox for trunk/src/VBox/Additions/x11/VBoxClient/display.cpp
- Timestamp:
- Apr 13, 2015 9:09:37 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/display.cpp
r55191 r55202 86 86 /** Tell the VBoxGuest driver we no longer want any events and tell the host 87 87 * we no longer support any capabilities. */ 88 static int disableEventsAndCaps( )88 static int disableEventsAndCaps(bool fDisableEvents) 89 89 { 90 90 int rc = VbglR3SetGuestCaps(0, VMMDEV_GUEST_SUPPORTS_GRAPHICS); … … 94 94 if (RT_FAILURE(rc)) 95 95 VBClFatalError(("Failed to unset mouse status, rc=%Rrc.\n", rc)); 96 rc = VbglR3CtlFilterMask(0, VMMDEV_EVENT_MOUSE_CAPABILITIES_CHANGED97 96 if (fDisableEvents) 97 rc = VbglR3CtlFilterMask(0, VMMDEV_EVENT_MOUSE_CAPABILITIES_CHANGED | VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST); 98 98 if (RT_FAILURE(rc)) 99 99 VBClFatalError(("Failed to unset filter mask, rc=%Rrc.\n", rc)); … … 385 385 if (!pSelf->mfInit) 386 386 return VERR_WRONG_ORDER; 387 return disableEventsAndCaps( );387 return disableEventsAndCaps(false); 388 388 } 389 389 … … 400 400 { 401 401 NOREF(ppInterface); 402 disableEventsAndCaps( );402 disableEventsAndCaps(true); 403 403 VbglR3Term(); 404 404 }
Note:
See TracChangeset
for help on using the changeset viewer.