summaryrefslogtreecommitdiff
path: root/src/protocols/core/Compositor.cpp
diff options
context:
space:
mode:
authorTom Englund <tomenglund26@gmail.com>2025-11-25 23:51:51 +0100
committerGitHub <noreply@github.com>2025-11-25 22:51:51 +0000
commit210930bef93916b6271685277e54b0dedb46214e (patch)
tree1726bb787223b2022b4af7b34e2d462fb0a43803 /src/protocols/core/Compositor.cpp
parent40d8fa84919c6d0e9fcb1536f4bc09710d4c031c (diff)
buffers: revert state merging (#12461)
8e8bfbb0b146fb1f3234b2a3e3e92b63989e1993 added fifo and merged non buffer states before comitting them, something about certain xwl non buffer commits expects a commit to happend and causes regressions as in low fps.
Diffstat (limited to 'src/protocols/core/Compositor.cpp')
-rw-r--r--src/protocols/core/Compositor.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/protocols/core/Compositor.cpp b/src/protocols/core/Compositor.cpp
index ed36b1f9..541eae92 100644
--- a/src/protocols/core/Compositor.cpp
+++ b/src/protocols/core/Compositor.cpp
@@ -550,13 +550,6 @@ void CWLSurfaceResource::commitState(SSurfaceState& state) {
nullptr);
}
- if (m_current.updated.bits.damage) {
- // damage is always relative to the current commit
- m_current.updated.bits.damage = false;
- m_current.damage.clear();
- m_current.bufferDamage.clear();
- }
-
// release the buffer if it's synchronous (SHM) as updateSynchronousTexture() has copied the buffer data to a GPU tex
// if it doesn't have a role, we can't release it yet, in case it gets turned into a cursor.
if (m_current.buffer && m_current.buffer->isSynchronous() && m_role->role() != SURFACE_ROLE_UNASSIGNED)