Commit 8e0454b5 authored by Ryan C. Gordon's avatar Ryan C. Gordon

Keep mouse cursor state sane on focus change in Quartz driver.

   Fixes Bugzilla #12.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401564
parent 625655e2
......@@ -627,6 +627,12 @@ static void QZ_DoActivate (_THIS)
QZ_PrivateWarpCursor (this, cursor_loc.x, cursor_loc.y);
QZ_ChangeGrabState (this, QZ_ENABLE_GRAB);
}
else {
/* Update SDL's mouse location */
NSPoint p;
QZ_GetMouseLocation (this, &p);
SDL_PrivateMouseMotion (0, 0, p.x, p.y);
}
}
static void QZ_DoDeactivate (_THIS) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment