aboutsummaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <anselm@garbe.us>2009-09-27 20:20:10 +0100
committerAnselm R Garbe <anselm@garbe.us>2009-09-27 20:20:10 +0100
commit210378f19833c739f3d2e4acaca55fccb29c57f7 (patch)
treee525e211defe565539c28b48b9e6f84f98b9e658 /dwm.c
parent7879616a75948f7b713e56e51ca6461925be23b4 (diff)
applied Ryan Zheng's patch and re-releasing 5.7.2
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dwm.c b/dwm.c
index b3a389d..32755cb 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1449,10 +1449,9 @@ void
setlayout(const Arg *arg) {
if(!arg || !arg->v || arg->v != selmon->lt[selmon->sellt])
selmon->sellt ^= 1;
- if(arg && arg->v) {
+ if(arg && arg->v)
selmon->lt[selmon->sellt] = (Layout *)arg->v;
- strncpy(selmon->ltsymbol, selmon->lt[selmon->sellt]->symbol, sizeof selmon->ltsymbol);
- }
+ strncpy(selmon->ltsymbol, selmon->lt[selmon->sellt]->symbol, sizeof selmon->ltsymbol);
if(selmon->sel)
arrange(selmon);
else