From 810a9651a362992383081619ca63122f41f1cd0a Mon Sep 17 00:00:00 2001 From: NRK Date: Wed, 1 Jun 2022 14:59:16 +0600 Subject: reduce calls to win-title rather than calling the script unconditionally per redraw, we now have a `title_dirty` flag and keep track of when any of the relavent information changes. Co-authored-by: Arthur Williams Partially fixes: https://github.com/nsxiv/nsxiv/issues/258 --- commands.c | 1 + 1 file changed, 1 insertion(+) (limited to 'commands.c') diff --git a/commands.c b/commands.c index 9ee83ec..2c4f4a7 100644 --- a/commands.c +++ b/commands.c @@ -63,6 +63,7 @@ bool cg_switch_mode(arg_t _) } close_info(); open_info(); + title_dirty = true; return true; } -- cgit v1.2.3-54-g00ecf