src/video/wayland/SDL_waylandevents.c
changeset 10099 c7932bb6dcee
parent 9998 f67cf37e9cd4
child 10154 fae27a079fcb
equal deleted inserted replaced
10098:91b34fbbb88e 10099:c7932bb6dcee
   300         return;
   300         return;
   301     }
   301     }
   302  
   302  
   303     window = wl_surface_get_user_data(surface);
   303     window = wl_surface_get_user_data(surface);
   304 
   304 
   305     input->keyboard_focus = window;
       
   306     window->keyboard_device = input;
       
   307     if (window) {
   305     if (window) {
       
   306         input->keyboard_focus = window;
       
   307         window->keyboard_device = input;
   308         SDL_SetKeyboardFocus(window->sdlwindow);
   308         SDL_SetKeyboardFocus(window->sdlwindow);
   309     }
   309     }
   310 }
   310 }
   311 
   311 
   312 static void
   312 static void