src/video/kmsdrm/SDL_kmsdrmvideo.c
changeset 13592 3ff45857428d
parent 13577 d28975f16368
child 13672 389ce8cfa2a3
     1.1 --- a/src/video/kmsdrm/SDL_kmsdrmvideo.c	Thu Mar 05 08:43:16 2020 -0800
     1.2 +++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c	Sat Mar 07 08:48:04 2020 -0800
     1.3 @@ -808,6 +808,10 @@
     1.4  
     1.5      viddata->windows[viddata->num_windows++] = window;
     1.6  
     1.7 +    /* Focus on the newly created window */
     1.8 +    SDL_SetMouseFocus(window);
     1.9 +    SDL_SetKeyboardFocus(window);
    1.10 +
    1.11      return 0;
    1.12  
    1.13  error: