Add a patch to update the tittle with interesting info. - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
 (HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) changeset 902467a309b32ffddba700859331819e0a798297
 (DIR) parent 042182c93fe3fc94c26fb56e343b615da9159809
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Tue, 29 Jan 2019 12:08:00 
       
       Add a patch to update the tittle with interesting info.
       
       Diffstat:
        graphics/sxiv/patch-main.c |  24 ++++++++++++++++++++++++
        1 files changed, 24 insertions(+), 0 deletions(-)
       ---
       diff -r 042182c93fe3 -r 902467a309b3 graphics/sxiv/patch-main.c
       --- /dev/null   Thu Jan 01 00:00:00 1970 +0000
       +++ b/graphics/sxiv/patch-main.c        Tue Jan 29 12:08:00 2019 +0100
       @@ -0,0 +1,24 @@
       +$NetBSD$
       +
       +Update the contents of the title similarly to the bar (so also
       +without the bar we have information about the current image).
       +
       +--- main.c.orig        2019-01-26 13:54:40.000000000 +0000
       ++++ main.c
       +@@ -351,8 +351,16 @@ void update_info(void)
       + {
       +       unsigned int i, fn, fw;
       +       const char * mark;
       ++      char title[512];
       +       win_bar_t *l = &win.bar.l, *r = &win.bar.r;
       + 
       ++      /* update title contents */
       ++      snprintf(title, sizeof(title), "%s - %d/%d (%d%%) %s",
       ++          files[fileidx].name, fileidx + 1, filecnt,
       ++          (int) (img.zoom * 100.0),
       ++          files[fileidx].flags & FF_MARK ? "*" : "");
       ++      win_set_title(&win, title);
       ++
       +       /* update bar contents */
       +       if (win.bar.h == 0)
       +               return;