- Timestamp:
- Mar 20, 2023 4:36:56 PM (21 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r99071 r99072 851 851 connect(m_pMachine, &UIMachine::sigMouseStateChange, 852 852 this, static_cast<void(UIIndicatorMouse::*)(int)>(&UIIndicatorMouse::setState)); 853 setState(m_pMachine->mouseState());854 853 /* Translate finally: */ 855 854 retranslateUi(); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp
r98601 r99072 253 253 int UIMouseHandler::state() const 254 254 { 255 return (uimachine()->isMouseCaptured() ? UIMouseStateType_MouseCaptured : 0) | 255 return uimachine()->machineState() == KMachineState_Null ? 0 : 256 (uimachine()->isMouseCaptured() ? UIMouseStateType_MouseCaptured : 0) | 256 257 (uimachine()->isMouseSupportsAbsolute() ? UIMouseStateType_MouseAbsolute : 0) | 257 258 (uimachine()->isMouseIntegrated() ? 0 : UIMouseStateType_MouseAbsoluteDisabled); … … 367 368 void UIMouseHandler::sltMachineStateChanged() 368 369 { 369 /* Get machine state: */ 370 KMachineState machineState = uimachine()->machineState(); 370 /* Get cached machine states: */ 371 const KMachineState enmState = uimachine()->machineState(); 372 371 373 /* Handle particular machine states: */ 372 switch ( machineState)374 switch (enmState) 373 375 { 374 376 case KMachineState_Paused: … … 387 389 * if we are not in paused VM state already: */ 388 390 if (machineLogic()->activeMachineWindow() && 389 machineState != KMachineState_Paused &&390 machineState != KMachineState_TeleportingPausedVM)391 enmState != KMachineState_Paused && 392 enmState != KMachineState_TeleportingPausedVM) 391 393 UINotificationMessage::forgetAboutPausedVMInput(); 392 394
Note:
See TracChangeset
for help on using the changeset viewer.