Changeset 102018 in vbox
- Timestamp:
- Nov 9, 2023 11:19:23 AM (16 months ago)
- svn:sync-xref-src-repo-rev:
- 160118
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.cpp
r101719 r102018 707 707 { 708 708 return uisession()->acquireGuestAdditionsRevision(uRevision); 709 } 710 711 bool UIMachine::notifyGuiFocusChange(bool fInfocus) 712 { 713 return uisession()->notifyGuiFocusChange(fInfocus); 709 714 } 710 715 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachine.h
r101719 r102018 417 417 /** Acquires the guest addition's revision. */ 418 418 bool acquireGuestAdditionsRevision(ulong &uRevision); 419 /** Notifies guest about VM window focus changes. */ 420 bool notifyGuiFocusChange(bool fInfocus); 419 421 /** @} */ 420 422 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r101719 r102018 1489 1489 sltSwitchKeyboardLedsToGuestLeds(); 1490 1490 #endif /* !VBOX_WS_WIN */ 1491 1492 /* Notify guest about VM window now has input focus. */ 1493 if (!uimachine()->notifyGuiFocusChange(true)) 1494 LogRel(("GUI: Cannot notify guest about VM window in-focus event\n")); 1491 1495 break; 1492 1496 } … … 1496 1500 /* We should restore lock states to *previous* known: */ 1497 1501 sltSwitchKeyboardLedsToPreviousLeds(); 1502 1503 /* Notify guest about VM window has lost input focus. */ 1504 if (!uimachine()->notifyGuiFocusChange(false)) 1505 LogRel(("GUI: Cannot notify guest about VM window out-of-focus event\n")); 1498 1506 break; 1499 1507 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r101719 r102018 90 90 #endif 91 91 92 #include <VBox/GuestHost/clipboard-helper.h> 93 92 94 /* VirtualBox interface declarations: */ 93 95 #include <VBox/com/VirtualBox.h> … … 1360 1362 uRevision = uGARevision; 1361 1363 return fSuccess; 1364 } 1365 1366 bool UISession::notifyGuiFocusChange(bool fInfocus) 1367 { 1368 CMachine comMachine = machine(); 1369 comMachine.SetGuestProperty(VBOX_GUI_FOCUS_CHANGE_GUEST_PROP_NAME, fInfocus ? "1" : "0", "RDONLYGUEST,TRANSIENT"); 1370 return comMachine.isOk(); 1362 1371 } 1363 1372 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r101719 r102018 404 404 /** Acquires the guest addition's revision. */ 405 405 bool acquireGuestAdditionsRevision(ulong &uRevision); 406 /** Notifies GAs about VM window focus changes. */ 407 bool notifyGuiFocusChange(bool fInfocus); 406 408 /** @} */ 407 409
Note:
See TracChangeset
for help on using the changeset viewer.