# HG changeset patch # User Anselm R Garbe # Date 1254079210 -3600 # Node ID 15761ac5e2f1e9010900f891616a24a22d82f128 # Parent 496694696a6101341d77e1ee11225c7927f86884 applied Ryan Zheng's patch and re-releasing 5.7.2 diff -r 496694696a61 -r 15761ac5e2f1 config.mk --- a/config.mk Sun Sep 27 10:31:20 2009 +0100 +++ b/config.mk Sun Sep 27 20:20:10 2009 +0100 @@ -1,5 +1,5 @@ # dwm version -VERSION = 5.7.1 +VERSION = 5.7.2 # Customize below to fit your system diff -r 496694696a61 -r 15761ac5e2f1 dwm.c --- a/dwm.c Sun Sep 27 10:31:20 2009 +0100 +++ b/dwm.c Sun Sep 27 20:20:10 2009 +0100 @@ -1449,10 +1449,9 @@ 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