Use the legacy fullscreen code if the window manager doesn't support the NetWM protocol.
This commit is contained in:
parent
0582dc6ce3
commit
c95f18c57a
1 changed files with 3 additions and 0 deletions
|
@ -1134,9 +1134,12 @@ X11_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * _display,
|
||||||
if (env) {
|
if (env) {
|
||||||
legacy = SDL_atoi(env);
|
legacy = SDL_atoi(env);
|
||||||
} else {
|
} else {
|
||||||
|
SDL_VideoData *videodata = (SDL_VideoData *) _this->driverdata;
|
||||||
SDL_DisplayData *displaydata = (SDL_DisplayData *) _display->driverdata;
|
SDL_DisplayData *displaydata = (SDL_DisplayData *) _display->driverdata;
|
||||||
if ( displaydata->use_vidmode ) {
|
if ( displaydata->use_vidmode ) {
|
||||||
legacy = SDL_TRUE; /* the new stuff only works with XRandR. */
|
legacy = SDL_TRUE; /* the new stuff only works with XRandR. */
|
||||||
|
} else if ( !videodata->net_wm ) {
|
||||||
|
legacy = SDL_TRUE; /* The window manager doesn't support it */
|
||||||
} else {
|
} else {
|
||||||
/* !!! FIXME: look at the window manager name, and blacklist certain ones? */
|
/* !!! FIXME: look at the window manager name, and blacklist certain ones? */
|
||||||
/* http://stackoverflow.com/questions/758648/find-the-name-of-the-x-window-manager */
|
/* http://stackoverflow.com/questions/758648/find-the-name-of-the-x-window-manager */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue