aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2016-07-31 16:50:13 +0200
committerBoris Faure <billiob@gmail.com>2016-07-31 16:50:13 +0200
commitdfe57a25a709f78d6417dee62dac0285e4b03d33 (patch)
tree868f5aa9f7cd016b6a9c0849ec84dcd7c50d2284
parentwin: hide tabcount when no longer tabs (diff)
downloadterminology-dfe57a25a709f78d6417dee62dac0285e4b03d33.tar.gz
win: when closing solo container, dissociate it from its parent
-rw-r--r--src/bin/win.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/win.c b/src/bin/win.c
index 2afbf96..1da46cb 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -246,11 +246,19 @@ _solo_size_eval(Term_Container *container, Sizeinfo *info)
static void
_solo_close(Term_Container *tc, Term_Container *child EINA_UNUSED)
{
+ Solo *solo;
+ Term *term;
+
DBG("close");
+ assert (tc->type == TERM_CONTAINER_TYPE_SOLO);
+ solo = (Solo*) tc;
tc->parent->close(tc->parent, tc);
eina_stringshare_del(tc->title);
+ term = solo->term;
+ term->container = NULL;
+
free(tc);
}