src/events/SDL_windowevents.c
changeset 7089 257fc4e541e1
parent 6885 700f1b25f77f
child 7191 75360622e65f
     1.1 --- a/src/events/SDL_windowevents.c	Mon Apr 22 18:14:32 2013 -0700
     1.2 +++ b/src/events/SDL_windowevents.c	Mon Apr 22 18:14:55 2013 -0700
     1.3 @@ -148,12 +148,14 @@
     1.4              return 0;
     1.5          }
     1.6          window->flags |= SDL_WINDOW_MOUSE_FOCUS;
     1.7 +        SDL_OnWindowEnter(window);
     1.8          break;
     1.9      case SDL_WINDOWEVENT_LEAVE:
    1.10          if (!(window->flags & SDL_WINDOW_MOUSE_FOCUS)) {
    1.11              return 0;
    1.12          }
    1.13          window->flags &= ~SDL_WINDOW_MOUSE_FOCUS;
    1.14 +		SDL_OnWindowLeave(window);
    1.15          break;
    1.16      case SDL_WINDOWEVENT_FOCUS_GAINED:
    1.17          if (window->flags & SDL_WINDOW_INPUT_FOCUS) {