1
0
mirror of git://git.suckless.org/dwm synced 2024-12-17 12:44:58 +00:00

using BarTop as fallback if BARPOS is set to BarOff as default for toggling

This commit is contained in:
Anselm R. Garbe 2007-05-15 13:49:43 +02:00
parent b896b58d6d
commit 5ad2828c57

View File

@ -218,7 +218,12 @@ setlayout(const char *arg) {
void
togglebar(const char *arg) {
bpos = (bpos == BarOff) ? BARPOS : BarOff;
if(bpos == BarOff) {
if((bpos = BARPOS) == BarOff)
bpos = BarTop;
}
else
bpos = BarOff;
updatebarpos();
lt->arrange();
}