diff options
| author | bakkeby <[email protected]> | 2019-09-11 00:51:37 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2019-09-11 00:51:37 +0200 |
| commit | 5d33aebaafbc042cf576a76fbdf4ae64ef5cfff1 (patch) | |
| tree | 2353a6e57314546ef121e2d5f25b9c34c4297940 /patch/cyclelayouts.c | |
| parent | d0757568ee2680e50d142a32ec7c759439431399 (diff) | |
| download | dwm-flexipatch-5d33aebaafbc042cf576a76fbdf4ae64ef5cfff1.tar.gz dwm-flexipatch-5d33aebaafbc042cf576a76fbdf4ae64ef5cfff1.zip | |
Adding float border color patch
Diffstat (limited to 'patch/cyclelayouts.c')
| -rw-r--r-- | patch/cyclelayouts.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/patch/cyclelayouts.c b/patch/cyclelayouts.c index 4fdc873..bd33bfe 100644 --- a/patch/cyclelayouts.c +++ b/patch/cyclelayouts.c @@ -1,16 +1,17 @@ void -cyclelayout(const Arg *arg) { +cyclelayout(const Arg *arg) +{ Layout *l; - for(l = (Layout *)layouts; l != selmon->lt[selmon->sellt]; l++); - if(arg->i > 0) { - if(l->symbol && (l + 1)->symbol) + for (l = (Layout *)layouts; l != selmon->lt[selmon->sellt]; l++); + if (arg->i > 0) { + if (l->symbol && (l + 1)->symbol) setlayout(&((Arg) { .v = (l + 1) })); else setlayout(&((Arg) { .v = layouts })); } else { - if(l != layouts && (l - 1)->symbol) + if (l != layouts && (l - 1)->symbol) setlayout(&((Arg) { .v = (l - 1) })); else setlayout(&((Arg) { .v = &layouts[LENGTH(layouts) - 2] })); } -}
\ No newline at end of file +} |
