src/events/SDL_keyboard.c
branchSDL-1.3
changeset 1732 fd65f12b6de6
parent 1731 875c3cf1a12c
     1.1 --- a/src/events/SDL_keyboard.c	Sat Jul 08 20:07:08 2006 +0000
     1.2 +++ b/src/events/SDL_keyboard.c	Sat Jul 08 20:55:39 2006 +0000
     1.3 @@ -485,7 +485,8 @@
     1.4              }
     1.5          }
     1.6          if (!focus) {
     1.7 -            SDL_SendWindowEvent(windowID, SDL_WINDOWEVENT_FOCUS_GAINED, 0, 0);
     1.8 +            SDL_SendWindowEvent(keyboard->focus, SDL_WINDOWEVENT_FOCUS_LOST,
     1.9 +                                0, 0);
    1.10          }
    1.11      }
    1.12  
    1.13 @@ -504,7 +505,8 @@
    1.14              }
    1.15          }
    1.16          if (!focus) {
    1.17 -            SDL_SendWindowEvent(windowID, SDL_WINDOWEVENT_FOCUS_LOST, 0, 0);
    1.18 +            SDL_SendWindowEvent(keyboard->focus, SDL_WINDOWEVENT_FOCUS_GAINED,
    1.19 +                                0, 0);
    1.20          }
    1.21      }
    1.22  }