projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
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
<arg@suckless.org>
Tue, 15 May 2007 11:49:43 +0000
(13:49 +0200)
committer
Anselm R. Garbe
<arg@suckless.org>
Tue, 15 May 2007 11:49:43 +0000
(13:49 +0200)
layout.c
patch
|
blob
|
history
diff --git
a/layout.c
b/layout.c
index 26e9de6cba1e1d2e340a79d8a11956932684a53d..5bb6e97348593facf5473ca4737575298580a7a2 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();
}