Added check against Traits::overrideRedirct to prevent the fullscreen workaround being run when overrideRedirect

is on as overrideRedirect switches off the window managers ability to manage the fullscreen so the problem doesn't
need working around.
This commit is contained in:
Robert Osfield
2011-06-20 09:28:39 +00:00
parent 47146017ae
commit 0ff97d1350

View File

@@ -878,7 +878,7 @@ bool GraphicsWindowX11::createWindow()
wsi->getScreenResolution(*_traits, screenWidth, screenHeight);
bool isFullScreen = x == 0 && y == 0 && width == (int)screenWidth && height == (int)screenHeight && !_traits->windowDecoration;
if (isFullScreen)
if (isFullScreen && !_traits->overrideRedirect)
{
// follows is hack to get around problems with toggling off full screen with modern X11 window
// managers that try to be too clever when toggling off full screen and ignore the window size