Use the focus stack instead to determine which client is focused
VVMAEWPKLFTVOXGDNOQ7T7ONOEIQ46VBH4CTOAXEJATU7WTRG5IAC
J6OSBEBQXZR5JZ5TOCCUPELBPUVEQULGCXURXLPY7WFYTDEQOU2AC
O5JVMDEEKP334BAYMJ6HHXROW4X4WC24JHCYZTKJRQE5UGYXV7YQC
7B74AT3BXYB7PVW4F6SGQNPMHOU5TEV5TZ54CG6VSQI46XSEKWXQC
2ZRKX4A24W4WNSLJNPKP3FWB3Y3UCYLWWESTC65P45BQFSJKS4PQC
/* Cycle to the next client */
/* XXX will need more logic with clients on different monitors */
Client *c = wl_container_of(clients.next, c, link);
/* Find the selected client (top of fstack) and focus the client * following it in tiling order */ Client *c = wl_container_of(fstack.next, c, flink);
/* Find the selected client (top of fstack) and focus the client
* following it in tiling order */
Client *c = wl_container_of(fstack.next, c, flink);
/* Skip the sentinel node if we wrap around the end of the list */ if (&n->link == &clients) n = wl_container_of(n->link.next, n, link);
/* Skip the sentinel node if we wrap around the end of the list */
if (&n->link == &clients)
n = wl_container_of(n->link.next, n, link);
/* Move the previous client to the end of the list */ wl_list_remove(&c->link); wl_list_insert(clients.prev, &c->link);
/* Move the previous client to the end of the list */
wl_list_remove(&c->link);
wl_list_insert(clients.prev, &c->link);