From b595d90ff50b5c90dea31fa007a3852f7282a213 Mon Sep 17 00:00:00 2001 From: Adria Lopez Date: Mon, 27 Nov 2017 12:29:30 +0100 Subject: [PATCH] Set title to passed command when executing with -e --- termite.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/termite.cc b/termite.cc index ba1fc30..5e3447c 100644 --- a/termite.cc +++ b/termite.cc @@ -1760,7 +1760,11 @@ int main(int argc, char **argv) { } else { g_signal_connect(vte, "window-title-changed", G_CALLBACK(window_title_cb), &info.config.dynamic_title); - window_title_cb(vte, &info.config.dynamic_title); + if (execute) { + gtk_window_set_title(GTK_WINDOW(window), execute); + } else { + window_title_cb(vte, &info.config.dynamic_title); + } } if (geometry) {