diff options
Diffstat (limited to 'src/protocols/core/Compositor.cpp')
| -rw-r--r-- | src/protocols/core/Compositor.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/protocols/core/Compositor.cpp b/src/protocols/core/Compositor.cpp index 9f3a5407..10245982 100644 --- a/src/protocols/core/Compositor.cpp +++ b/src/protocols/core/Compositor.cpp @@ -128,6 +128,13 @@ CWLSurfaceResource::CWLSurfaceResource(SP<CWlSurface> resource_) : m_resource(re (!m_pending.buffer && !m_pending.texture) // null buffer attached ) { commitState(m_pending); + + if (!m_pending.buffer && !m_pending.texture) { + // null buffer attached, remove any pending states. + while (!m_pendingStates.empty()) { + m_pendingStates.pop(); + } + } m_pending.reset(); return; } |
