Commit b8d5b0fb authored by Ryan C. Gordon's avatar Ryan C. Gordon

To: sdl@libsdl.org

From: Christian Walther <cwalther@gmx.ch>
Date: Wed, 21 Dec 2005 13:39:39 +0100
Subject: [SDL] Another mouse bug patch for Mac OS X

Oh my, yet another change in the quartz mouse handling code! :)

The attached patch fixes the following bug:

Calling SDL_WarpMouse() while the cursor is invisible and grabbed should
only update SDL's internal mouse location, not try to warp the system
cursor (which is not at that location, but fixed in the middle of the
window). Otherwise, the next mouse motion event is wrong.

Please apply.

Thanks

  Christian

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401210
parent 871f4f92
...@@ -231,7 +231,7 @@ void QZ_WarpWMCursor (_THIS, Uint16 x, Uint16 y) { ...@@ -231,7 +231,7 @@ void QZ_WarpWMCursor (_THIS, Uint16 x, Uint16 y) {
return; return;
/* Do the actual warp */ /* Do the actual warp */
QZ_PrivateWarpCursor (this, x, y); if (grab_state != QZ_INVISIBLE_GRAB) QZ_PrivateWarpCursor (this, x, y);
/* Generate the mouse moved event */ /* Generate the mouse moved event */
SDL_PrivateMouseMotion (0, 0, x, y); SDL_PrivateMouseMotion (0, 0, x, y);
......
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