src/video/emscripten/SDL_emscriptenvideo.c
changeset 10332 359290a75710
parent 10331 710c2ae96681
child 10333 a0495857c42f
     1.1 --- a/src/video/emscripten/SDL_emscriptenvideo.c	Tue Sep 13 00:03:53 2016 -0700
     1.2 +++ b/src/video/emscripten/SDL_emscriptenvideo.c	Tue Sep 13 00:03:54 2016 -0700
     1.3 @@ -24,6 +24,7 @@
     1.4  
     1.5  #include "SDL_video.h"
     1.6  #include "SDL_mouse.h"
     1.7 +#include "SDL_hints.h"
     1.8  #include "../SDL_sysvideo.h"
     1.9  #include "../SDL_pixels_c.h"
    1.10  #include "../SDL_egl_c.h"
    1.11 @@ -76,6 +77,9 @@
    1.12          return (0);
    1.13      }
    1.14  
    1.15 +    /* Firefox sends blur event which would otherwise prevent full screen */
    1.16 +    SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0");
    1.17 +
    1.18      /* Set the function pointers */
    1.19      device->VideoInit = Emscripten_VideoInit;
    1.20      device->VideoQuit = Emscripten_VideoQuit;