Changeset 52195 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 25, 2014 3:32:45 PM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
r52190 r52195 1393 1393 if (m_fIsKeyboardCaptured) 1394 1394 { 1395 const MouseCapturePolicy policy = gEDataManager->mouseCapturePolicy(vboxGlobal().managedVMUuid());1396 if (policy == MouseCapturePolicy_Default || policy== MouseCapturePolicy_HostComboOnly)1395 if (uisession()->mouseCapturePolicy() == MouseCapturePolicy_Default || 1396 uisession()->mouseCapturePolicy() == MouseCapturePolicy_HostComboOnly) 1397 1397 machineLogic()->mouseHandler()->captureMouse(uScreenId); 1398 1398 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp
r52190 r52195 35 35 #include "UIMachineView.h" 36 36 #include "UIFrameBuffer.h" 37 #include "UIExtraDataManager.h"38 37 39 38 #ifdef Q_WS_WIN … … 992 991 #endif /* Q_WS_X11 */ 993 992 machineLogic()->keyboardHandler()->captureKeyboard(uScreenId); 994 if ( gEDataManager->mouseCapturePolicy(vboxGlobal().managedVMUuid()) == MouseCapturePolicy_Default)993 if (uisession()->mouseCapturePolicy() == MouseCapturePolicy_Default) 995 994 captureMouse(uScreenId); 996 995 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r52186 r52195 134 134 , m_pMachineWindowIcon(0) 135 135 #endif /* !Q_WS_MAC */ 136 , m_mouseCapturePolicy(MouseCapturePolicy_Default) 136 137 , m_guruMeditationHandlerType(GuruMeditationHandlerType_Default) 137 138 , m_hiDPIOptimizationType(HiDPIOptimizationType_None) … … 1147 1148 #endif /* !Q_WS_MAC */ 1148 1149 1150 /* Determine mouse-capture policy: */ 1151 m_mouseCapturePolicy = gEDataManager->mouseCapturePolicy(strMachineID); 1152 1149 1153 /* Determine Guru Meditation handler type: */ 1150 1154 m_guruMeditationHandlerType = gEDataManager->guruMeditationHandlerType(strMachineID); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r52184 r52195 107 107 /** @name Runtime workflow stuff. 108 108 ** @{ */ 109 /** Returns the mouse-capture policy. */ 110 MouseCapturePolicy mouseCapturePolicy() const { return m_mouseCapturePolicy; } 109 111 /** Returns Guru Meditation handler type. */ 110 112 GuruMeditationHandlerType guruMeditationHandlerType() const { return m_guruMeditationHandlerType; } … … 343 345 /** @name Runtime workflow variables. 344 346 ** @{ */ 347 /** Holds the mouse-capture policy. */ 348 MouseCapturePolicy m_mouseCapturePolicy; 345 349 /** Holds Guru Meditation handler type. */ 346 350 GuruMeditationHandlerType m_guruMeditationHandlerType;
Note:
See TracChangeset
for help on using the changeset viewer.