applied Ryan Zheng's patch and re-releasing 5.7.2 - dwm - dynamic window manager HTML git clone https://git.parazyd.org/dwm DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 210378f19833c739f3d2e4acaca55fccb29c57f7 DIR parent 7879616a75948f7b713e56e51ca6461925be23b4 HTML Author: Anselm R Garbe <anselm@garbe.us> Date: Sun, 27 Sep 2009 20:20:10 +0100 applied Ryan Zheng's patch and re-releasing 5.7.2 Diffstat: M config.mk | 2 +- M dwm.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) --- DIR diff --git a/config.mk b/config.mk @@ -1,5 +1,5 @@ # dwm version -VERSION = 5.7.1 +VERSION = 5.7.2 # Customize below to fit your system DIR diff --git 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