Changeset 30348 in vbox
- Timestamp:
- Jun 21, 2010 6:23:20 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r30347 r30348 206 206 , m_desktopGeometryType(DesktopGeo_Invalid) 207 207 , m_iLastMouseWheelDelta(0) 208 , m_bIsAutoCaptureDisabled(false)209 208 , m_bIsKeyboardCaptured(false) 210 209 , m_bIsHostkeyPressed(false) … … 1264 1263 { 1265 1264 #ifdef Q_WS_WIN32 1266 if (! m_bIsAutoCaptureDisabled&& m_globalSettings.autoCapture() && GetAncestor(winId(), GA_ROOT) == GetForegroundWindow())1265 if (!uisession()->isAutoCaptureDisabled() && m_globalSettings.autoCapture() && GetAncestor(winId(), GA_ROOT) == GetForegroundWindow()) 1267 1266 #else 1268 if (! m_bIsAutoCaptureDisabled&& m_globalSettings.autoCapture())1267 if (!uisession()->isAutoCaptureDisabled() && m_globalSettings.autoCapture()) 1269 1268 #endif 1270 1269 { … … 1273 1272 1274 1273 /* Reset the single-time disable capture flag: */ 1275 if ( m_bIsAutoCaptureDisabled)1276 m_bIsAutoCaptureDisabled = false;1274 if (uisession()->isAutoCaptureDisabled()) 1275 uisession()->setAutoCaptureDisabled(false); 1277 1276 } 1278 1277 else … … 1446 1445 * the capture state is to be defined by the 1447 1446 * dialog result itself */ 1448 m_bIsAutoCaptureDisabled = true;1447 uisession()->setAutoCaptureDisabled(true); 1449 1448 bool autoConfirmed = false; 1450 1449 ok = vboxProblem().confirmInputCapture (&autoConfirmed); 1451 1450 if (autoConfirmed) 1452 m_bIsAutoCaptureDisabled = false;1451 uisession()->setAutoCaptureDisabled(false); 1453 1452 /* otherwise, the disable flag will be reset in 1454 1453 * the next console view's foucs in event (since … … 1775 1774 /* Temporarily disable auto capture that will take place after this dialog is dismissed because 1776 1775 * the capture state is to be defined by the dialog result itself: */ 1777 m_bIsAutoCaptureDisabled = true;1776 uisession()->setAutoCaptureDisabled(true); 1778 1777 bool autoConfirmed = false; 1779 1778 bool ok = vboxProblem().confirmInputCapture(&autoConfirmed); 1780 1779 if (autoConfirmed) 1781 m_bIsAutoCaptureDisabled = false;1780 uisession()->setAutoCaptureDisabled(false); 1782 1781 /* Otherwise, the disable flag will be reset in the next console view's foucs in event (since 1783 1782 * may happen asynchronously on some platforms, after we return from this code): */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h
r30347 r30348 229 229 uint8_t m_pressedKeysCopy[128]; 230 230 231 bool m_bIsAutoCaptureDisabled : 1;232 231 bool m_bIsKeyboardCaptured : 1; 233 232 bool m_bIsHostkeyPressed : 1; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r30323 r30348 559 559 , m_fIsGuestResizeIgnored(false) 560 560 , m_fIsSeamlessModeRequested(false) 561 , m_fIsAutoCaptureDisabled(false) 561 562 /* Guest additions flags: */ 562 563 , m_fIsGuestAdditionsActive(false) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r29485 r30348 102 102 bool isGuestResizeIgnored() const { return m_fIsGuestResizeIgnored; } 103 103 bool isSeamlessModeRequested() const { return m_fIsSeamlessModeRequested; } 104 bool isAutoCaptureDisabled() const { return m_fIsAutoCaptureDisabled; } 104 105 105 106 /* Guest additions state getters: */ … … 130 131 void setGuestResizeIgnored(bool fIsGuestResizeIgnored) { m_fIsGuestResizeIgnored = fIsGuestResizeIgnored; } 131 132 void setSeamlessModeRequested(bool fIsSeamlessModeRequested) { m_fIsSeamlessModeRequested = fIsSeamlessModeRequested; } 133 void setAutoCaptureDisabled(bool fIsAutoCaptureDisabled) { m_fIsAutoCaptureDisabled = fIsAutoCaptureDisabled; } 132 134 133 135 /* Keyboard setters: */ … … 234 236 bool m_fIsGuestResizeIgnored : 1; 235 237 bool m_fIsSeamlessModeRequested : 1; 238 bool m_fIsAutoCaptureDisabled : 1; 236 239 237 240 /* Guest additions flags: */
Note:
See TracChangeset
for help on using the changeset viewer.