diff options
author | Bert Münnich <ber.t@posteo.de> | 2018-10-15 15:29:39 +0200 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2018-10-15 15:29:39 +0200 |
commit | 0bf32654307d285eaf7b538db40548202a6b5596 (patch) | |
tree | 46a4d47191478a265d0cc3c16a36584687046dfd | |
parent | 971f5d669490696c11f5c4ede1fee558e05ae4fc (diff) |
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.
-rw-r--r-- | main.c | 9 | ||||
-rw-r--r-- | window.c | 3 |
2 files changed, 0 insertions, 12 deletions
@@ -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; @@ -464,9 +464,6 @@ void win_draw_rect(win_t *win, int x, int y, int w, int h, bool fill, int lw, void win_set_title(win_t *win, const char *title) { - if (title == NULL) - title = "sxiv"; - XStoreName(win->env.dpy, win->xwin, title); XSetIconName(win->env.dpy, win->xwin, title); |