summaryrefslogtreecommitdiff
path: root/src/desktop/LayerSurface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop/LayerSurface.cpp')
-rw-r--r--src/desktop/LayerSurface.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/desktop/LayerSurface.cpp b/src/desktop/LayerSurface.cpp
index 2252adca..f3db4b61 100644
--- a/src/desktop/LayerSurface.cpp
+++ b/src/desktop/LayerSurface.cpp
@@ -119,6 +119,8 @@ void CLayerSurface::onMap() {
mapped = true;
interactivity = layerSurface->current.interactivity;
+ layerSurface->surface->map();
+
// this layer might be re-mapped.
fadingOut = false;
g_pCompositor->removeFromFadingOutSafe(self.lock());
@@ -190,6 +192,7 @@ void CLayerSurface::onUnmap() {
g_pCompositor->addToFadingOutSafe(self.lock());
mapped = false;
+ layerSurface->surface->unmap();
startAnimation(false);
return;
@@ -201,6 +204,7 @@ void CLayerSurface::onUnmap() {
startAnimation(false);
mapped = false;
+ layerSurface->surface->unmap();
g_pCompositor->addToFadingOutSafe(self.lock());