From bc9df67c79dd1b6b81e1092b9346aa6e4cb4506a Mon Sep 17 00:00:00 2001
From: Vlad Zahorodnii <vlad.zahorodnii@kde.org>
Date: Fri, 20 Nov 2020 12:33:57 +0200
Subject: [PATCH] platforms/wayland: Present buffers even if nothing has been
 changed

Present buffers event if nothing has been changed on the screen because
we want to receive the frame callback.
---
 .../platforms/wayland/egl_wayland_backend.cpp    | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/plugins/platforms/wayland/egl_wayland_backend.cpp b/plugins/platforms/wayland/egl_wayland_backend.cpp
index 814be5ee04..90e35ba253 100644
--- a/plugins/platforms/wayland/egl_wayland_backend.cpp
+++ b/plugins/platforms/wayland/egl_wayland_backend.cpp
@@ -378,22 +378,6 @@ void EglWaylandBackend::endFrame(int screenId, const QRegion &renderedRegion, co
 {
     EglWaylandOutput *output = m_outputs[screenId];
     QRegion damage = damagedRegion.intersected(output->m_waylandOutput->geometry());
-    if (damage.isEmpty()) {
-
-        // If the damaged region of a window is fully occluded, the only
-        // rendering done, if any, will have been to repair a reused back
-        // buffer, making it identical to the front buffer.
-        //
-        // In this case we won't post the back buffer. Instead we'll just
-        // set the buffer age to 1, so the repaired regions won't be
-        // rendered again in the next frame.
-        if (!renderedRegion.intersected(output->m_waylandOutput->geometry()).isEmpty()) {
-            glFlush();
-        }
-
-        output->m_bufferAge = 1;
-        return;
-    }
     presentOnSurface(output, damage);
 
     if (supportsBufferAge()) {