From af99b4e98cac66a3c803d83e68539ae990dbadd0 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Mon, 9 Jan 2023 14:54:19 +0100 Subject: [PATCH] backends/x11: Present surface even with empty damage All the other backends present their surface regardless. If the surface isn't presented, the scheduled frame is never finished, and rendering gets stuck indefinitely. This is also consistent with x11 standalone backend which forgoes this check. Signed-off-by: Victoria Fischer --- src/backends/x11/windowed/x11_windowed_egl_backend.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/backends/x11/windowed/x11_windowed_egl_backend.cpp b/src/backends/x11/windowed/x11_windowed_egl_backend.cpp index de17496658..c577917fe9 100644 --- a/src/backends/x11/windowed/x11_windowed_egl_backend.cpp +++ b/src/backends/x11/windowed/x11_windowed_egl_backend.cpp @@ -177,9 +177,6 @@ void X11WindowedEglBackend::present(Output *output) void X11WindowedEglBackend::presentSurface(EGLSurface surface, const QRegion &damage, const QRect &screenGeometry) { - if (damage.isEmpty()) { - return; - } const bool fullRepaint = supportsBufferAge() || (damage == screenGeometry); if (fullRepaint || !havePostSubBuffer()) {