From d97dc68f3699586c09afc554ebf67da7cdd1efed Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Sat, 12 May 2012 22:59:48 +0100 Subject: [PATCH] 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. --- spectrwm.c | 3 --- 1 file changed, 3 deletions(-) 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 -- 2.39.2