summaryrefslogtreecommitdiff
path: root/src/protocols/XDGShell.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2024-07-28 23:56:35 +0200
committervaxerski <vaxry@vaxry.net>2024-07-28 23:56:35 +0200
commita9d87bd6669568741704de08b6f0328a92e29396 (patch)
treeec8eeaf6635749213fe061754cc2ef112f81a542 /src/protocols/XDGShell.cpp
parent7df9b01d483155713c8d89666c7fc865b90c162e (diff)
surface: emit unmap before unmapping and releasing the buffers
Diffstat (limited to 'src/protocols/XDGShell.cpp')
-rw-r--r--src/protocols/XDGShell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/XDGShell.cpp b/src/protocols/XDGShell.cpp
index 4b180617..e9921988 100644
--- a/src/protocols/XDGShell.cpp
+++ b/src/protocols/XDGShell.cpp
@@ -365,8 +365,8 @@ CXDGSurfaceResource::CXDGSurfaceResource(SP<CXdgSurface> resource_, SP<CXDGWMBas
if (!surface->current.buffer && mapped) {
mapped = false;
- surface->unmap();
events.unmap.emit();
+ surface->unmap();
return;
}