From 6bdc36b15a15c98bbb33582908740346675485cc Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 29 Sep 2011 14:04:47 +0200 Subject: Avoid unnecessary window updates Add a window bitmask to wins_update() and only update windows that might actually require an update in our main loop. This improves response times of the user interface a bit. Signed-off-by: Lukas Fleischer --- src/custom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/custom.c') diff --git a/src/custom.c b/src/custom.c index 78a3a6a..50c2e82 100644 --- a/src/custom.c +++ b/src/custom.c @@ -696,8 +696,8 @@ custom_sidebar_config (void) else { wins_reinit_panels (); - wins_update_border (); - wins_update_panels (); + wins_update_border (FLAG_ALL); + wins_update_panels (FLAG_ALL); keys_display_bindings_bar (win[STA].p, binding, 0, binding_size); wins_doupdate (); } -- cgit v1.2.3-54-g00ecf