aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-06-05 15:27:40 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-06-05 15:27:40 -0500
commitb91017e713d4e6719d19368b883e54af4731f0c0 (patch)
tree257f5c24821c854b269bb224efaec7ade171c69a
parent2623a96ebf4c0b43e65d3ff3d7c1b0e56634acf3 (diff)
disable scene node at unmaplayersurface()
-rw-r--r--dwl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index f061ebe..ca0368a 100644
--- a/dwl.c
+++ b/dwl.c
@@ -2250,7 +2250,8 @@ toggleview(const Arg *arg)
void
unmaplayersurface(LayerSurface *layersurface)
{
- layersurface->layer_surface->mapped = 0;
+ layersurface->layer_surface->mapped = layersurface->mapped = 0;
+ wlr_scene_node_set_enabled(layersurface->scene, 0);
if (layersurface->layer_surface->surface ==
seat->keyboard_state.focused_surface)
focusclient(selclient(), 1);