From 05ba450c3b58c095b1e4ed206c25654f29a33b5a Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 13 May 2014 21:35:02 +0200 Subject: Reduce flicker when resizing in option menus Do not update the main windows when resizing the terminal in the general options menu or in the notification options menu. Signed-off-by: Lukas Fleischer --- src/wins.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/wins.c') diff --git a/src/wins.c b/src/wins.c index da517e8..2d521c1 100644 --- a/src/wins.c +++ b/src/wins.c @@ -584,12 +584,18 @@ void wins_update(int flags) } /* Reset the screen, needed when resizing terminal for example. */ -void wins_reset(void) +void wins_reset_noupdate(void) { endwin(); wins_refresh(); curs_set(0); wins_reinit(); +} + +/* Reset the screen, needed when resizing terminal for example. */ +void wins_reset(void) +{ + wins_reset_noupdate(); wins_update(FLAG_ALL); } -- cgit v1.2.3-54-g00ecf