src/video/wayland/SDL_waylandevents.c
changeset 10099 c7932bb6dcee
parent 9998 f67cf37e9cd4
child 10154 fae27a079fcb
     1.1 --- a/src/video/wayland/SDL_waylandevents.c	Wed Mar 02 20:25:09 2016 +0100
     1.2 +++ b/src/video/wayland/SDL_waylandevents.c	Wed Mar 02 20:25:23 2016 +0100
     1.3 @@ -302,9 +302,9 @@
     1.4   
     1.5      window = wl_surface_get_user_data(surface);
     1.6  
     1.7 -    input->keyboard_focus = window;
     1.8 -    window->keyboard_device = input;
     1.9      if (window) {
    1.10 +        input->keyboard_focus = window;
    1.11 +        window->keyboard_device = input;
    1.12          SDL_SetKeyboardFocus(window->sdlwindow);
    1.13      }
    1.14  }