diff src/events/SDL_mouse.c @ 3195:08747e24a50f

Mouse events now report the correct window id and window enter/leave events are now reported.
author Bob Pendleton <bob@pendleton.com>
date Thu, 11 Jun 2009 20:08:33 +0000
parents 91b335df6fc8
children 5d7ef5970073
line wrap: on
line diff
--- a/src/events/SDL_mouse.c	Thu Jun 11 06:03:05 2009 +0000
+++ b/src/events/SDL_mouse.c	Thu Jun 11 20:08:33 2009 +0000
@@ -97,6 +97,7 @@
     /* we're setting the mouse properties */
     length = 0;
     length = SDL_strlen(name);
+    SDL_mice[index]->focus = 0;
     SDL_mice[index]->name = SDL_malloc((length + 2) * sizeof(char));
     SDL_strlcpy(SDL_mice[index]->name, name, length + 1);
     SDL_mice[index]->pressure_max = pressure_max;