src/video/android/SDL_androidwindow.c
changeset 12255 d2e5d4520677
parent 12017 d8a165136edf
child 12305 85c6aa0836d8
     1.1 --- a/src/video/android/SDL_androidwindow.c	Sat Sep 29 01:24:10 2018 +0300
     1.2 +++ b/src/video/android/SDL_androidwindow.c	Fri Sep 28 20:39:57 2018 -0700
     1.3 @@ -27,6 +27,7 @@
     1.4  #include "../../events/SDL_keyboard_c.h"
     1.5  #include "../../events/SDL_mouse_c.h"
     1.6  #include "../../events/SDL_windowevents_c.h"
     1.7 +#include "../../core/android/SDL_android.h"
     1.8  
     1.9  #include "SDL_androidvideo.h"
    1.10  #include "SDL_androidwindow.h"
    1.11 @@ -109,6 +110,10 @@
    1.12      // Samsung DeX or Chromebooks or other windowed Android environemtns, our window may 
    1.13      // still not be the full display size.
    1.14      //
    1.15 +    if (!SDL_IsDeXMode() && !SDL_IsChromebook()) {
    1.16 +        return;
    1.17 +    }
    1.18 +
    1.19      SDL_WindowData * data = (SDL_WindowData *)window->driverdata;
    1.20  
    1.21      if (!data || !data->native_window) {