aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termptyesc.c
diff options
context:
space:
mode:
authorJosé Roberto de Souza <jose.souza@intel.com>2016-03-02 11:37:02 -0300
committerJosé Roberto de Souza <jose.souza@intel.com>2016-03-04 11:34:24 -0300
commitae7e96633a74324d0a41ad58e71ef6e88acdf959 (patch)
treea539f68fcb0bef47518d9c96064e0cdb4f4e168d /src/bin/termptyesc.c
parentRevert "wip" (diff)
downloadterminology-ae7e96633a74324d0a41ad58e71ef6e88acdf959.tar.gz
Allow user to set the title of the each tab
Diffstat (limited to 'src/bin/termptyesc.c')
-rw-r--r--src/bin/termptyesc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 3b0552f..0daeda4 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -1326,7 +1326,8 @@ _handle_esc_xterm(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce)
ty->prop.title = NULL;
ty->prop.icon = NULL;
}
- if (ty->cb.set_title.func) ty->cb.set_title.func(ty->cb.set_title.data);
+ if (ty->cb.set_title.func && !ty->prop.user_title)
+ ty->cb.set_title.func(ty->cb.set_title.data);
if (ty->cb.set_icon.func) ty->cb.set_icon.func(ty->cb.set_icon.data);
}
break;