diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp index c77e9dafc51..32099050856 100644 --- a/backends/graphics/openglsdl/openglsdl-graphics.cpp +++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp @@ -481,7 +481,8 @@ bool OpenGLSdlGraphicsManager::setupMode(uint width, uint height) { // a chance to save the window size. That way if the user switches back // to windowed mode, the window manager has a window size to apply instead // of leaving the window at the fullscreen resolution size. - if (!_window->getSDLWindow()) { + const char *driver = SDL_GetCurrentVideoDriver(); + if (!_window->getSDLWindow() && driver && strcmp(driver, "x11") == 0) { _window->createOrUpdateWindow(width, height, flags); }