src/events/SDL_windowevents.c
branchSDL-1.3
changeset 1734 f7c667ded87d
parent 1733 0b1070f2f94d
     1.1 --- a/src/events/SDL_windowevents.c	Sun Jul 09 09:02:26 2006 +0000
     1.2 +++ b/src/events/SDL_windowevents.c	Sun Jul 09 18:09:16 2006 +0000
     1.3 @@ -100,17 +100,17 @@
     1.4          window->flags &= ~SDL_WINDOW_MOUSE_FOCUS;
     1.5          break;
     1.6      case SDL_WINDOWEVENT_FOCUS_GAINED:
     1.7 -        if (window->flags & SDL_WINDOW_KEYBOARD_FOCUS) {
     1.8 +        if (window->flags & SDL_WINDOW_INPUT_FOCUS) {
     1.9              return 0;
    1.10          }
    1.11 -        window->flags |= SDL_WINDOW_KEYBOARD_FOCUS;
    1.12 +        window->flags |= SDL_WINDOW_INPUT_FOCUS;
    1.13          SDL_OnWindowFocusGained(window);
    1.14          break;
    1.15      case SDL_WINDOWEVENT_FOCUS_LOST:
    1.16 -        if (!(window->flags & SDL_WINDOW_KEYBOARD_FOCUS)) {
    1.17 +        if (!(window->flags & SDL_WINDOW_INPUT_FOCUS)) {
    1.18              return 0;
    1.19          }
    1.20 -        window->flags &= ~SDL_WINDOW_KEYBOARD_FOCUS;
    1.21 +        window->flags &= ~SDL_WINDOW_INPUT_FOCUS;
    1.22          SDL_OnWindowFocusLost(window);
    1.23          break;
    1.24      }