diff options
-rw-r--r-- | config.mk | 2 | ||||
-rw-r--r-- | dwm.c | 5 |
2 files changed, 3 insertions, 4 deletions
@@ -1,5 +1,5 @@ # dwm version -VERSION = 5.7.1 +VERSION = 5.7.2 # Customize below to fit your system @@ -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 |