summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
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
1449setlayout(const Arg *arg) { 1449setlayout(const Arg *arg) {
1450 if(!arg || !arg->v || arg->v != selmon->lt[selmon->sellt]) 1450 if(!arg || !arg->v || arg->v != selmon->lt[selmon->sellt])
1451 selmon->sellt ^= 1; 1451 selmon->sellt ^= 1;
1452 if(arg && arg->v) { 1452 if(arg && arg->v)
1453 selmon->lt[selmon->sellt] = (Layout *)arg->v; 1453 selmon->lt[selmon->sellt] = (Layout *)arg->v;
1454 strncpy(selmon->ltsymbol, selmon->lt[selmon->sellt]->symbol, sizeof selmon->ltsymbol); 1454 strncpy(selmon->ltsymbol, selmon->lt[selmon->sellt]->symbol, sizeof selmon->ltsymbol);
1455 }
1456 if(selmon->sel) 1455 if(selmon->sel)
1457 arrange(selmon); 1456 arrange(selmon);
1458 else 1457 else