VirtualBox

Changeset 30409 in vbox


Ignore:
Timestamp:
Jun 24, 2010 4:11:27 AM (15 years ago)
Author:
vboxsync
Message:

FE/Qt: First try to fix mac build for r63034.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp

    r30408 r30409  
    17801780        /* Disable mouse and keyboard event compression/delaying to make sure we *really* get all of the events. */
    17811781        ::CGSetLocalEventsSuppressionInterval(0.0);
    1782         setMouseCoalescingEnabled(false);
     1782        machineLogic()->mouseHandler()->setMouseCoalescingEnabled(false);
    17831783
    17841784        /* Register the event callback/hook and grab the keyboard. */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.cpp

    r30408 r30409  
    2929#include "UIMachineLogic.h"
    3030#include "UIMachineView.h"
     31
     32#ifdef Q_WS_MAC
     33# include "VBoxUtils-darwin.h"
     34#endif /* Q_WS_MAC */
    3135
    3236/* Factory function to create mouse-handler: */
     
    196200           (uisession()->isMouseIntegrated() ? 0 : UIMouseStateType_MouseAbsoluteDisabled);
    197201}
     202
     203#ifdef Q_WS_MAC
     204void UIMachineView::setMouseCoalescingEnabled(bool fOn)
     205{
     206    /* Enable mouse event compression if we leave the VM view.
     207     * This is necessary for having smooth resizing of the VM/other windows.
     208     * Disable mouse event compression if we enter the VM view.
     209     * So all mouse events are registered in the VM.
     210    ::darwinSetMouseCoalescingEnabled(fOn);
     211}
     212#endif /* Q_WS_MAC */
    198213
    199214/* Machine state-change handler: */
     
    449464                    /* Enable mouse event compression if we leave the VM view.
    450465                     * This is necessary for having smooth resizing of the VM/other windows: */
    451                     ::darwinSetMouseCoalescingEnabled(true);
     466                    setMouseCoalescingEnabled(true);
    452467                    break;
    453468                }
     
    459474                     * (this is when we have a valid event handler): */
    460475                    if (m_views[uScreenId]->isKeyboardGrabbed())
    461                         ::darwinSetMouseCoalescingEnabled(false);
     476                        setMouseCoalescingEnabled(false);
    462477                    break;
    463478                }
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMouseHandler.h

    r30408 r30409  
    6262    int mouseState() const;
    6363
     64#ifdef Q_WS_MAC
     65    /* Enable mouse event compression if we leave the VM view.
     66     * This is necessary for having smooth resizing of the VM/other windows.
     67     * Disable mouse event compression if we enter the VM view.
     68     * So all mouse events are registered in the VM.
     69    void setMouseCoalescingEnabled(bool fOn);
     70#endif /* Q_WS_MAC */
     71
    6472signals:
    6573
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