JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Zap superfluous calls to bar_update.
authorTiago Cunha <tcunha@gmx.com>
Sat, 12 May 2012 21:59:48 +0000 (22:59 +0100)
committerTiago Cunha <tcunha@gmx.com>
Tue, 5 Jun 2012 21:30:56 +0000 (22:30 +0100)
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

index e2f8670..7f2123d 100644 (file)
@@ -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