Merge pull request #543 from adlpz/master

Set title to passed command when executing with -e
This commit is contained in:
jelle van der Waa 2017-12-11 22:37:05 +01:00 committed by GitHub
commit e9e72d0893
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -1765,8 +1765,12 @@ int main(int argc, char **argv) {
} else { } else {
g_signal_connect(vte, "window-title-changed", G_CALLBACK(window_title_cb), g_signal_connect(vte, "window-title-changed", G_CALLBACK(window_title_cb),
&info.config.dynamic_title); &info.config.dynamic_title);
if (execute) {
gtk_window_set_title(GTK_WINDOW(window), execute);
} else {
window_title_cb(vte, &info.config.dynamic_title); window_title_cb(vte, &info.config.dynamic_title);
} }
}
if (geometry) { if (geometry) {
gtk_widget_show_all(panel_overlay); gtk_widget_show_all(panel_overlay);