From bbb67f2675d2968ea908eb67404251a5c7b65971 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Tue, 8 Jan 2019 15:51:47 +0000 Subject: [PATCH] [plugins/qpa] Commit wl_surface when flipping FBOs Summary: Even though the buffer is passed through a side channel some properties we might use are double-buffered on the surface commit. Test Plan: Used by unit test InternalWindowTest::testScale in linked commit Reviewers: #kwin, graesslin Reviewed By: #kwin, graesslin Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D18085 --- plugins/qpa/window.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/qpa/window.cpp b/plugins/qpa/window.cpp index 12431d360b..37ce0e7254 100644 --- a/plugins/qpa/window.cpp +++ b/plugins/qpa/window.cpp @@ -148,6 +148,7 @@ QSharedPointer Window::swapFBO() { auto fbo = m_contentFBO; m_contentFBO.clear(); + m_surface->commit(KWayland::Client::Surface::CommitFlag::None); return fbo; }