Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
Added tag 4.1 for changeset 00f4180df72b
[dwm.git]
/
layout.c
diff --git
a/layout.c
b/layout.c
index
5bb6e97
..
bc5ca1c
100644
(file)
--- a/
layout.c
+++ b/
layout.c
@@
-218,10
+218,8
@@
setlayout(const char *arg) {
void
togglebar(const char *arg) {
- if(bpos == BarOff) {
- if((bpos = BARPOS) == BarOff)
- bpos = BarTop;
- }
+ if(bpos == BarOff)
+ bpos = (BARPOS == BarOff) ? BarTop : BARPOS;
else
bpos = BarOff;
updatebarpos();