Changeset 2377 in vbox
- Timestamp:
- Apr 27, 2007 2:49:06 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/darwin/DarwinKeyboard.cpp
r2348 r2377 239 239 240 240 241 /** Keeping track of whether we disabled the hotkeys or not. */242 static bool g_fHotKeysDisabled = false;243 241 /** Whether we've connected or not. */ 244 242 static bool g_fConnectedToCGS = false; … … 449 447 else 450 448 { 451 if ( enmMode != kCGSGlobalHotKeyDisable 452 /*|| !g_fHotKeysDisabled*/) 449 if (enmMode != kCGSGlobalHotKeyDisable) 453 450 return; 454 451 enmMode = kCGSGlobalHotKeyEnable; … … 461 458 CGSGlobalHotKeyOperatingMode enmNewMode = kCGSGlobalHotKeyInvalid; 462 459 CGSGetGlobalHotKeyOperatingMode(g_CGSConnection, &enmNewMode); 463 if (enmNewMode == enmMode) 464 g_fHotKeysDisabled = enmMode == kCGSGlobalHotKeyDisable; 465 else 466 { 467 AssertMsgFailed(("enmNewMode=%d enmMode=%d\n", enmNewMode, enmMode)); 460 if (enmNewMode != enmMode) 461 { 462 /* If the screensaver kicks in we should ignore failure here. */ 463 AssertMsg(enmMode == kCGSGlobalHotKeyEnable, ("enmNewMode=%d enmMode=%d\n", enmNewMode, enmMode)); 468 464 if (s_cComplaints++ < 32) 469 465 LogRel(("DarwinDisableGlobalHotKeys: Failed to change mode; enmNewMode=%d enmMode=%d\n", enmNewMode, enmMode));
Note:
See TracChangeset
for help on using the changeset viewer.