Modify workspace next/prev to account for workspaces on all outputs.
Generally, the traversal goes: numbered workspaces in order, and then named workspaces in the order in which they appear in the tree. Example: Output 1: Output 2: 1 3 D C 2 4 B A Traversal: 1, 2, 3, 4, D, C, B, A, 1, ... Note, after the numbered workspaces, we traverse the named workspaces from output 1, and then output 2, etc.
This commit is contained in:
committed by
Michael Stapelberg
parent
8287a94292
commit
1750192f63
@ -30,6 +30,10 @@
|
||||
for (Con *child = (Con*)-1; (child == (Con*)-1) && ((child = 0), true);) \
|
||||
TAILQ_FOREACH(child, &((head)->nodes_head), nodes)
|
||||
|
||||
#define NODES_FOREACH_REVERSE(head) \
|
||||
for (Con *child = (Con*)-1; (child == (Con*)-1) && ((child = 0), true);) \
|
||||
TAILQ_FOREACH_REVERSE(child, &((head)->nodes_head), nodes_head, nodes)
|
||||
|
||||
/* greps the ->nodes of the given head and returns the first node that matches the given condition */
|
||||
#define GREP_FIRST(dest, head, condition) \
|
||||
NODES_FOREACH(head) { \
|
||||
|
Reference in New Issue
Block a user