aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2016-03-06 13:20:36 +0100
committerBoris Faure <billiob@gmail.com>2016-03-06 13:21:02 +0100
commit22a32379605f5d82877cb69d4e227a1bb96a6846 (patch)
treea733f1d0b340c9ded3cc70a280c3fe527530300e
parentAllow user to set the title of the each tab (diff)
downloadterminology-22a32379605f5d82877cb69d4e227a1bb96a6846.tar.gz
win: be sure we have a child to unfocus. Closes https://phab.enlightenment.org/T3260
-rw-r--r--src/bin/win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/win.c b/src/bin/win.c
index 3da03b2..426e8ae 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -875,7 +875,7 @@ _win_unfocus(Term_Container *tc, Term_Container *relative)
DBG("tc:%p tc->is_focused:%d from_child:%d",
tc, tc->is_focused, wn->child == relative);
- if (relative != wn->child)
+ if (relative != wn->child && wn->child)
{
tc->is_focused = EINA_FALSE;
wn->child->unfocus(wn->child, tc);