clang-format: bring back ForeachMacros (#3948)
* clang-format: bring back ForeachMacros
ForeachMacros was disabled in 4211274fcd
due to the breakage of include/queue.h. The currently used version,
clang-format-6.0 doesn't break it.
* Add curly braces
Co-authored-by: Orestis Floros <orestisflo@gmail.com>
This commit is contained in:
10
src/tree.c
10
src/tree.c
@@ -431,13 +431,15 @@ static void mark_unmapped(Con *con) {
|
||||
Con *current;
|
||||
|
||||
con->mapped = false;
|
||||
TAILQ_FOREACH(current, &(con->nodes_head), nodes)
|
||||
mark_unmapped(current);
|
||||
TAILQ_FOREACH (current, &(con->nodes_head), nodes) {
|
||||
mark_unmapped(current);
|
||||
}
|
||||
if (con->type == CT_WORKSPACE) {
|
||||
/* We need to call mark_unmapped on floating nodes as well since we can
|
||||
* make containers floating. */
|
||||
TAILQ_FOREACH(current, &(con->floating_head), floating_windows)
|
||||
mark_unmapped(current);
|
||||
TAILQ_FOREACH (current, &(con->floating_head), floating_windows) {
|
||||
mark_unmapped(current);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user