diff options
| author | Anselm R. Garbe <arg@suckless.org> | 2007-05-15 14:06:18 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <arg@suckless.org> | 2007-05-15 14:06:18 +0200 |
| commit | 1e826ddd3ee0159bf2bd296a24e557b0d971ed91 (patch) | |
| tree | e30efceaf9593696e6b8b071f4cd3d21dc674af4 /layout.c | |
| parent | raising the barwin has no effect becasue of restack (diff) | |
| download | dwm-1e826ddd3ee0159bf2bd296a24e557b0d971ed91.tar.gz dwm-1e826ddd3ee0159bf2bd296a24e557b0d971ed91.zip | |
simplification
Diffstat (limited to 'layout.c')
| -rw-r--r-- | layout.c | 6 |
1 files changed, 2 insertions, 4 deletions
| @@ -218,10 +218,8 @@ setlayout(const char *arg) { | |||
| 218 | 218 | ||
| 219 | void | 219 | void |
| 220 | togglebar(const char *arg) { | 220 | togglebar(const char *arg) { |
| 221 | if(bpos == BarOff) { | 221 | if(bpos == BarOff) |
| 222 | if((bpos = BARPOS) == BarOff) | 222 | bpos = (BARPOS == BarOff) ? BarTop : BARPOS; |
| 223 | bpos = BarTop; | ||
| 224 | } | ||
| 225 | else | 223 | else |
| 226 | bpos = BarOff; | 224 | bpos = BarOff; |
| 227 | updatebarpos(); | 225 | updatebarpos(); |
