Commit 3bc62249 authored by Moritz Lipp's avatar Moritz Lipp

Update title with file path

parent 31aa5301
......@@ -497,6 +497,9 @@ document_open(zathura_t* zathura, const char* path, const char* password)
page_set_delayed(zathura, document->current_page_number);
cb_view_vadjustment_value_changed(NULL, zathura);
/* update title */
girara_set_window_title(zathura->ui.session, document->file_path);
free(file_uri);
return true;
......@@ -597,6 +600,9 @@ document_close(zathura_t* zathura, bool keep_monitor)
girara_statusbar_item_set_text(zathura->ui.session, zathura->ui.statusbar.file, "[No name]");
}
/* update title */
girara_set_window_title(zathura->ui.session, "zathura");
return true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment