Xinqi Bao's Git
projects
/
dwm.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
| inline |
side by side
(parent:
b896b58
)
using BarTop as fallback if BARPOS is set to BarOff as default for toggling
author
Anselm R. Garbe <
[email protected]
>
Tue, 15 May 2007 11:49:43 +0000
(13:49 +0200)
committer
Anselm R. Garbe <
[email protected]
>
Tue, 15 May 2007 11:49:43 +0000
(13:49 +0200)
layout.c
diff
|
blob
|
history
diff --git
a/layout.c
b/layout.c
index
26e9de6
..
5bb6e97
100644
(file)
--- a/
layout.c
+++ b/
layout.c
@@
-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();
}