aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/win.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2015-09-26 12:01:42 +0200
committerBoris Faure <billiob@gmail.com>2015-09-26 12:01:42 +0200
commit86a596d94669999d988c9d8f6703b5ecc731328e (patch)
tree292d84b9372aa02a5a1e54617be1c7334dcf26b0 /src/bin/win.c
parentfix focus issue when creating a new tab in a split (diff)
downloadterminology-86a596d94669999d988c9d8f6703b5ecc731328e.tar.gz
fix --split option
Diffstat (limited to 'src/bin/win.c')
-rw-r--r--src/bin/win.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/win.c b/src/bin/win.c
index 1ec7117..2642961 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -919,6 +919,9 @@ _term_container_is_splittable(Term_Container *tc, Eina_Bool is_horizontal)
int w = 0, h = 0, c_w = 0, c_h = 0;
Term *tm;
+ if (terminology_starting_up)
+ return EINA_TRUE;
+
tm = tc->term_first(tc);
evas_object_geometry_get(tm->bg, NULL, NULL, &w, &h);
evas_object_textgrid_cell_size_get(termio_textgrid_get(tm->termio),
@@ -974,6 +977,10 @@ _win_split(Term_Container *tc, Term_Container *child,
tc_split->is_focused = tc->is_focused;
tc->swallow(tc, NULL, tc_split);
}
+ else
+ {
+ DBG("term is not splittable");
+ }
}
static void