VirtualBox

Changeset 52195 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jul 25, 2014 3:32:45 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: 7468: Update to r95247: Re-integrate flag from UISession side (better for 4.3).

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  
    13931393                        if (m_fIsKeyboardCaptured)
    13941394                        {
    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)
    13971397                                machineLogic()->mouseHandler()->captureMouse(uScreenId);
    13981398                        }
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp

    r52190 r52195  
    3535#include "UIMachineView.h"
    3636#include "UIFrameBuffer.h"
    37 #include "UIExtraDataManager.h"
    3837
    3938#ifdef Q_WS_WIN
     
    992991#endif /* Q_WS_X11 */
    993992                        machineLogic()->keyboardHandler()->captureKeyboard(uScreenId);
    994                         if (gEDataManager->mouseCapturePolicy(vboxGlobal().managedVMUuid()) == MouseCapturePolicy_Default)
     993                        if (uisession()->mouseCapturePolicy() == MouseCapturePolicy_Default)
    995994                            captureMouse(uScreenId);
    996995                    }
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r52186 r52195  
    134134    , m_pMachineWindowIcon(0)
    135135#endif /* !Q_WS_MAC */
     136    , m_mouseCapturePolicy(MouseCapturePolicy_Default)
    136137    , m_guruMeditationHandlerType(GuruMeditationHandlerType_Default)
    137138    , m_hiDPIOptimizationType(HiDPIOptimizationType_None)
     
    11471148#endif /* !Q_WS_MAC */
    11481149
     1150        /* Determine mouse-capture policy: */
     1151        m_mouseCapturePolicy = gEDataManager->mouseCapturePolicy(strMachineID);
     1152
    11491153        /* Determine Guru Meditation handler type: */
    11501154        m_guruMeditationHandlerType = gEDataManager->guruMeditationHandlerType(strMachineID);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h

    r52184 r52195  
    107107    /** @name Runtime workflow stuff.
    108108     ** @{ */
     109    /** Returns the mouse-capture policy. */
     110    MouseCapturePolicy mouseCapturePolicy() const { return m_mouseCapturePolicy; }
    109111    /** Returns Guru Meditation handler type. */
    110112    GuruMeditationHandlerType guruMeditationHandlerType() const { return m_guruMeditationHandlerType; }
     
    343345    /** @name Runtime workflow variables.
    344346     ** @{ */
     347    /** Holds the mouse-capture policy. */
     348    MouseCapturePolicy m_mouseCapturePolicy;
    345349    /** Holds Guru Meditation handler type. */
    346350    GuruMeditationHandlerType m_guruMeditationHandlerType;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette