Fix Colormap when using X11_SetWindowFullscreenViaWM() path.

This was needed to get X11_SetWindowGammaRamp() working. Sam points out that there is an issue right now where
colormaps will only work with fullscreen windows, and we may want to set this when getting input focus for
windowed apps.
This commit is contained in:
Michael Sartain 2012-10-11 09:34:13 -07:00
parent d6da0196c1
commit 4e4ea5fb3a
2 changed files with 8 additions and 0 deletions

1
TODO
View File

@ -6,6 +6,7 @@
* Write automated test case for multi-draw APIs
* Implement assertion code on iPhone
* Add __WINDOWS__ in addition to __WIN32__
* Write test for fullscreen gamma to check X11 colormap handling
* Check 1.2 revisions:
3554 - Need to resolve semantics for locking keys on different platforms

View File

@ -992,6 +992,13 @@ X11_SetWindowFullscreenViaWM(_THIS, SDL_Window * window, SDL_VideoDisplay * _dis
}
X11_SetNetWMState(_this, data->xwindow, flags);
}
if( fullscreen ) {
XInstallColormap(display, data->colormap);
} else {
XUninstallColormap(display, data->colormap);
}
XFlush(display);
}