diff src/events/SDL_mouse.c @ 1674:7688a73b25b1 SDL-1.3

Finishing up keyboard code revamp, at least for now...
author Sam Lantinga <slouken@libsdl.org>
date Sun, 11 Jun 2006 05:27:10 +0000
parents 89f7510fe17a
children a1ebb17f9c52
line wrap: on
line diff
--- a/src/events/SDL_mouse.c	Sat Jun 10 09:11:59 2006 +0000
+++ b/src/events/SDL_mouse.c	Sun Jun 11 05:27:10 2006 +0000
@@ -25,7 +25,6 @@
 
 #include "SDL_events.h"
 #include "SDL_events_c.h"
-#include "SDL_mouse_c.h"
 #include "default_cursor.h"
 
 
@@ -333,7 +332,7 @@
         event.button.button = button;
         event.button.x = mouse->x;
         event.button.y = mouse->y;
-        event.button.windowID = windowID;
+        event.button.windowID = mouse->focus;
         if ((SDL_EventOK == NULL) || (*SDL_EventOK) (&event)) {
             posted = 1;
             SDL_PushEvent(&event);