VirtualBox

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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                }
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