From dd9b4aa37a6ebdcc56bd84042a5820a771316dfb Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 19 Jul 2022 18:26:36 +0300 Subject: [PATCH] backends/x11: Remove AbstractEglBackend::setSurface() call KWin requires surfacesless contexts, so this setSurface() is not needed. This ensures that makeCurrent() won't make the opengl context current against a surface that belongs to a removed output. --- src/backends/x11/windowed/egl_x11_backend.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/backends/x11/windowed/egl_x11_backend.cpp b/src/backends/x11/windowed/egl_x11_backend.cpp index 5d095d2ea3..a618113c46 100644 --- a/src/backends/x11/windowed/egl_x11_backend.cpp +++ b/src/backends/x11/windowed/egl_x11_backend.cpp @@ -103,7 +103,6 @@ bool X11WindowedEglBackend::createSurfaces() if (m_outputs.isEmpty()) { return false; } - setSurface(m_outputs.first()->surface()); return true; }