src/events/SDL_windowevents.c
changeset 2794 f7872b7a8732
parent 1970 db3ba6c0d0df
child 2849 523b10db69f8
--- a/src/events/SDL_windowevents.c	Thu Nov 27 05:29:12 2008 +0000
+++ b/src/events/SDL_windowevents.c	Thu Nov 27 21:53:18 2008 +0000
@@ -25,6 +25,7 @@
 
 #include "SDL_events.h"
 #include "SDL_events_c.h"
+#include "SDL_mouse_c.h"
 #include "../video/SDL_sysvideo.h"
 
 int
@@ -73,6 +74,7 @@
         window->w = data1;
         window->h = data2;
         SDL_OnWindowResized(window);
+        SDL_SetMouseFocusSize(windowID, window->w, window->h);
         break;
     case SDL_WINDOWEVENT_MINIMIZED:
         if (window->flags & SDL_WINDOW_MINIMIZED) {