From 210378f19833c739f3d2e4acaca55fccb29c57f7 Mon Sep 17 00:00:00 2001 From: Anselm R Garbe Date: Sun, 27 Sep 2009 20:20:10 +0100 Subject: applied Ryan Zheng's patch and re-releasing 5.7.2 --- dwm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index b3a389d6..32755cb7 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 -- cgit v1.2.3