Skip to content
Snippets Groups Projects
Commit 210378f1 authored by Anselm R Garbe's avatar Anselm R Garbe
Browse files

applied Ryan Zheng's patch and re-releasing 5.7.2

parent 7879616a
Branches
Tags 5.7.2
No related merge requests found
# 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment