diff src/video/x11/SDL_x11mouse.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 0deb3e94c251
children f7b03b6838cb
line wrap: on
line diff
--- a/src/video/x11/SDL_x11mouse.c	Thu Jun 11 06:03:05 2009 +0000
+++ b/src/video/x11/SDL_x11mouse.c	Thu Jun 11 20:08:33 2009 +0000
@@ -52,6 +52,8 @@
 #endif
     int num_mice = 0;
 
+    SDL_zero(mouse);
+
 #if SDL_VIDEO_DRIVER_X11_XINPUT
     /* we're getting the list of input devices */
     n = 0;