X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=spectrwm.c;h=71c7d9c46edd3cc2330828e450c1d007318bfb8a;hb=2c636ec10aa163bac3b5465fb6fe99746aea4b1f;hp=75c7a6cc7ddbe78b597bf9c71ceac86a3e2df770;hpb=43af7f1229fa4a5fbbc749733a08a5fb4ebfec24;p=spectrwm.git diff --git a/spectrwm.c b/spectrwm.c index 75c7a6c..71c7d9c 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -2882,6 +2882,10 @@ switchws(struct swm_region *r, union arg *args) if (!new_ws->focus) bar_update(); + /* make sure bar gets updated if ws is empty */ + if (!new_ws->focus) + bar_update(); + focus_flush(); DNPRINTF(SWM_D_WS, "switchws: done.\n"); @@ -7550,6 +7554,7 @@ void propertynotify(xcb_property_notify_event_t *e) { struct ws_win *win; + union arg a; #ifdef SWM_DEBUG char *name;