mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-05-19 09:30:24 -07:00
docs: update
This commit is contained in:
parent
ee2d881f25
commit
ecd096fb04
9
sowm.c
9
sowm.c
@ -267,13 +267,12 @@ void win_next() {
|
|||||||
Window cur = win_current();
|
Window cur = win_current();
|
||||||
client *c;
|
client *c;
|
||||||
|
|
||||||
if (head) {
|
if (!head) return;
|
||||||
|
if (cur == root) cur = head->win;
|
||||||
|
|
||||||
for WIN if (c->win == cur) break;
|
for WIN if (c->win == cur) break;
|
||||||
|
|
||||||
c = c->next;
|
if ((c = c->next ? c->next : head)) {
|
||||||
|
|
||||||
if (!c) c = head;
|
|
||||||
|
|
||||||
XSetInputFocus(dis, c->win, RevertToParent, CurrentTime);
|
XSetInputFocus(dis, c->win, RevertToParent, CurrentTime);
|
||||||
XRaiseWindow(dis, c->win);
|
XRaiseWindow(dis, c->win);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user