dwm.c
changeset 1502 15761ac5e2f1
parent 1500 48c3f87c335d
child 1508 0bee7022aca5
--- 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