From 0bf32654307d285eaf7b538db40548202a6b5596 Mon Sep 17 00:00:00 2001 From: Bert Münnich Date: Mon, 15 Oct 2018 15:29:39 +0200 Subject: Set window title only once at startup Putting image info in the title predates the info bar; it no longer seems necessary. Fixes issue #318. --- main.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 5a13403..2fa26a6 100644 --- a/main.c +++ b/main.c @@ -350,18 +350,9 @@ void bar_put(win_bar_t *bar, const char *fmt, ...) void update_info(void) { unsigned int i, fn, fw; - char title[256]; const char * mark; win_bar_t *l = &win.bar.l, *r = &win.bar.r; - /* update window title */ - if (mode == MODE_THUMB) { - win_set_title(&win, "sxiv"); - } else { - snprintf(title, sizeof(title), "sxiv - %s", files[fileidx].name); - win_set_title(&win, title); - } - /* update bar contents */ if (win.bar.h == 0) return; -- cgit v1.2.3-54-g00ecf