summaryrefslogtreecommitdiff
path: root/src/compositor/meta-compositor.c
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2019-10-20 19:54:39 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2019-10-20 19:54:39 +0300
commit3dcc5fe418fa8b5248f3c4429d02be8edaee22e2 (patch)
tree1f35ee334f7a0fc865722a7f8cc70ba10221361f /src/compositor/meta-compositor.c
parentd0caba28c85ef9a08aa11322f435489acd550cf0 (diff)
downloadmetacity-3dcc5fe418fa8b5248f3c4429d02be8edaee22e2.tar.gz
compositor: pass MetaSurface to remove_window
Diffstat (limited to 'src/compositor/meta-compositor.c')
-rw-r--r--src/compositor/meta-compositor.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compositor/meta-compositor.c b/src/compositor/meta-compositor.c
index a9c2864e..9dc466fe 100644
--- a/src/compositor/meta-compositor.c
+++ b/src/compositor/meta-compositor.c
@@ -430,13 +430,12 @@ meta_compositor_remove_window (MetaCompositor *compositor,
priv = meta_compositor_get_instance_private (compositor);
- META_COMPOSITOR_GET_CLASS (compositor)->remove_window (compositor, window);
-
surface = g_hash_table_lookup (priv->surfaces, window);
-
if (surface == NULL)
return;
+ META_COMPOSITOR_GET_CLASS (compositor)->remove_window (compositor, surface);
+
priv->stack = g_list_remove (priv->stack, surface);
g_hash_table_remove (priv->surfaces, window);
}