Skip to content

Commit

Permalink
Server|Mac OS X: Fixed Mac OS 10.4 build
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jan 8, 2013
1 parent 0bd61ea commit 90bf08b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions doomsday/engine/src/ui/canvas.cpp
Expand Up @@ -507,13 +507,14 @@ void Canvas::mouseMoveEvent(QMouseEvent* ev)
#endif

d->prevMousePos = ev->pos();
QTimer::singleShot(1, this, SLOT(recenterMouse()));

QTimer::singleShot(1, this, SLOT(recenterMouse()));
}
}

void Canvas::recenterMouse()
{
#ifdef __CLIENT__
// Ignore the next event, which is caused by the forced cursor move.
d->prevMousePos = QPoint();

Expand All @@ -528,8 +529,10 @@ void Canvas::recenterMouse()
#ifdef MACOS_10_4
CGSetLocalEventsSuppressionInterval(0.25);
#endif

#endif // __CLIENT__
}
#endif
#endif // LIBDENG_CANVAS_TRACK_WITH_MOUSE_MOVE_EVENTS

void Canvas::wheelEvent(QWheelEvent *ev)
{
Expand Down

0 comments on commit 90bf08b

Please sign in to comment.