From: Tiago Cunha Date: Sat, 12 May 2012 21:59:48 +0000 (+0100) Subject: Zap superfluous calls to bar_update. X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=d97dc68f3699586c09afc554ebf67da7cdd1efed;p=spectrwm.git Zap superfluous calls to bar_update. Remove scattered calls to bar_update when switching workspaces and cycling layouts, which are preceded by a focus function call. They already are (as they should be) responsible for doing that. --- diff --git a/spectrwm.c b/spectrwm.c index e2f8670..7f2123d 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -2282,8 +2282,6 @@ switchws(struct swm_region *r, union arg *args) a.id = SWM_ARG_ID_FOCUSCUR; focus(new_ws->r, &a); - bar_update(); - /* unmap old windows */ if (unmap_old) TAILQ_FOREACH(win, &old_ws->winlist, entry) @@ -2699,7 +2697,6 @@ cycle_layout(struct swm_region *r, union arg *args) drain_enter_notify(); a.id = SWM_ARG_ID_FOCUSCUR; focus(r, &a); - bar_update(); } void