diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-09-29 14:04:47 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2011-10-06 12:37:05 +0200 |
commit | 6bdc36b15a15c98bbb33582908740346675485cc (patch) | |
tree | 193011c4eff8cafa6efb73d70117fdc9412faebb /src/custom.c | |
parent | 5d3ed17bc8108e4720fa10ace107ff597c9f2904 (diff) | |
download | calcurse-6bdc36b15a15c98bbb33582908740346675485cc.zip |
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 <calcurse@cryptocrack.de>
Diffstat (limited to 'src/custom.c')
-rw-r--r-- | src/custom.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 (); } |