mfwm

A tiling fork of dylanaraps sowm.
git clone git://depsterr.com/git/mfwm
Log | Files | Refs | README | LICENSE

commit ecd096fb04b053aecc5f07427afde6f033e27de1
parent ee2d881f251da1c701e315ae36553982a7f3338b
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Sat, 12 Oct 2019 23:38:29 +0300

docs: update

Diffstat:
Msowm.c | 9++++-----
1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/sowm.c b/sowm.c @@ -267,13 +267,12 @@ void win_next() { Window cur = win_current(); client *c; - if (head) { - for WIN if (c->win == cur) break; + if (!head) return; + if (cur == root) cur = head->win; - c = c->next; - - if (!c) c = head; + for WIN if (c->win == cur) break; + if ((c = c->next ? c->next : head)) { XSetInputFocus(dis, c->win, RevertToParent, CurrentTime); XRaiseWindow(dis, c->win); }