summaryrefslogtreecommitdiff
path: root/lib/engine.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/engine.cc')
-rw-r--r--lib/engine.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/engine.cc b/lib/engine.cc
index d9e479f..65f3c55 100644
--- a/lib/engine.cc
+++ b/lib/engine.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: engine.cc,v 1.28 2004-11-27 21:48:03 pixel Exp $ */
+/* $Id: engine.cc,v 1.29 2005-12-01 13:48:12 pixel Exp $ */
#include <SDL.h>
#include <Input.h>
@@ -280,11 +280,11 @@ void mogltk::engine::pollevents() throw (GeneralException) {
}
break;
case SDL_MOUSEMOTION:
+ if ((event.motion.x == mx) && (event.motion.y == my))
+ break;
printm(M_INFO, "Mouse slept over the screen - (%i, %i)\n", event.motion.x, event.motion.y);
if (locked) {
- if (!((event.motion.x == mx) && (event.motion.y == my))) {
- SDL_WarpMouse(mx, my);
- }
+ SDL_WarpMouse(mx, my);
}
if (cursorvisible)
hastoreturn = true;