src/video/x11/SDL_x11window.c
changeset 6473 a5adb68266d0
parent 6470 ca793191b67a
child 6475 71d39944810b
     1.1 --- a/src/video/x11/SDL_x11window.c	Thu Sep 27 11:29:13 2012 -0700
     1.2 +++ b/src/video/x11/SDL_x11window.c	Thu Sep 27 11:39:31 2012 -0700
     1.3 @@ -1134,9 +1134,12 @@
     1.4      if (env) {
     1.5          legacy = SDL_atoi(env);
     1.6      } else {
     1.7 +        SDL_VideoData *videodata = (SDL_VideoData *) _this->driverdata;
     1.8          SDL_DisplayData *displaydata = (SDL_DisplayData *) _display->driverdata;
     1.9          if ( displaydata->use_vidmode ) {
    1.10              legacy = SDL_TRUE;  /* the new stuff only works with XRandR. */
    1.11 +        } else if ( !videodata->net_wm ) {
    1.12 +            legacy = SDL_TRUE;  /* The window manager doesn't support it */
    1.13          } else {
    1.14              /* !!! FIXME: look at the window manager name, and blacklist certain ones? */
    1.15              /* http://stackoverflow.com/questions/758648/find-the-name-of-the-x-window-manager */