Change bar_toggle_ws to enable overall visibility of bars when needed.

This commit is contained in:
Reginald Kennedy 2012-09-06 18:58:54 +08:00
parent c2a4935a92
commit 3facef6701

View file

@ -2249,6 +2249,8 @@ bar_toggle(struct swm_region *r, union arg *args)
/* Only change if master switch is enabled. */
if (bar_enabled)
r->ws->bar_enabled = !r->ws->bar_enabled;
else
bar_enabled = r->ws->bar_enabled = 1;
break;
case SWM_ARG_ID_BAR_TOGGLE:
bar_enabled = !bar_enabled;