src/events/SDL_windowevents.c
branchSDL-1.3
changeset 1734 f7c667ded87d
parent 1733 0b1070f2f94d
--- a/src/events/SDL_windowevents.c	Sun Jul 09 09:02:26 2006 +0000
+++ b/src/events/SDL_windowevents.c	Sun Jul 09 18:09:16 2006 +0000
@@ -100,17 +100,17 @@
         window->flags &= ~SDL_WINDOW_MOUSE_FOCUS;
         break;
     case SDL_WINDOWEVENT_FOCUS_GAINED:
-        if (window->flags & SDL_WINDOW_KEYBOARD_FOCUS) {
+        if (window->flags & SDL_WINDOW_INPUT_FOCUS) {
             return 0;
         }
-        window->flags |= SDL_WINDOW_KEYBOARD_FOCUS;
+        window->flags |= SDL_WINDOW_INPUT_FOCUS;
         SDL_OnWindowFocusGained(window);
         break;
     case SDL_WINDOWEVENT_FOCUS_LOST:
-        if (!(window->flags & SDL_WINDOW_KEYBOARD_FOCUS)) {
+        if (!(window->flags & SDL_WINDOW_INPUT_FOCUS)) {
             return 0;
         }
-        window->flags &= ~SDL_WINDOW_KEYBOARD_FOCUS;
+        window->flags &= ~SDL_WINDOW_INPUT_FOCUS;
         SDL_OnWindowFocusLost(window);
         break;
     }