aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/desktop
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2024-07-27 18:08:22 +0200
committervaxerski <[email protected]>2024-07-27 18:08:22 +0200
commit024327154425c76a2932d644d76990a00b5fcdac (patch)
treec1639764bb134bf9d3e5e160271e07c223d8ce2a /src/desktop
parent729b47d46d0c749efbffe01ea863a124fad562b4 (diff)
downloadHyprland-024327154425c76a2932d644d76990a00b5fcdac.tar.gz
Hyprland-024327154425c76a2932d644d76990a00b5fcdac.zip
layer-shell: properly map and unmap surface and propagate unmap events
Diffstat (limited to 'src/desktop')
-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());