Commit bbb67f26 authored by David Edmundson's avatar David Edmundson

[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
parent 03f79868
...@@ -148,6 +148,7 @@ QSharedPointer<QOpenGLFramebufferObject> Window::swapFBO() ...@@ -148,6 +148,7 @@ QSharedPointer<QOpenGLFramebufferObject> Window::swapFBO()
{ {
auto fbo = m_contentFBO; auto fbo = m_contentFBO;
m_contentFBO.clear(); m_contentFBO.clear();
m_surface->commit(KWayland::Client::Surface::CommitFlag::None);
return fbo; return fbo;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment