mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-08 04:28:03 +02:00
XQuartz: Tiger build fix
http://trac.macports.org/ticket/34364 Regression-from:662d41acddReported-by: Peter Dyballa <Peter_Dyballa@Freenet.DE> Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> (cherry picked from commite0097ce971)
This commit is contained in:
parent
21956e2f8e
commit
300970f8f8
1 changed files with 6 additions and 0 deletions
|
|
@ -1593,6 +1593,11 @@ handle_mouse:
|
|||
|
||||
case NSScrollWheel:
|
||||
{
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED < 1050
|
||||
float deltaX = [e deltaX];
|
||||
float deltaY = [e deltaY];
|
||||
BOOL isContinuous = NO;
|
||||
#else
|
||||
CGFloat deltaX = [e deltaX];
|
||||
CGFloat deltaY = [e deltaY];
|
||||
CGEventRef cge = [e CGEvent];
|
||||
|
|
@ -1614,6 +1619,7 @@ handle_mouse:
|
|||
deltaY *= lineHeight / 5.0;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(XPLUGIN_VERSION) || XPLUGIN_VERSION == 0
|
||||
/* If we're in the background, we need to send a MotionNotify event
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue