mirror of
https://github.com/swaywm/sway.git
synced 2024-11-10 20:44:01 +01:00
fixed 'return NULL' in 'void continer_map(...)'
This commit is contained in:
parent
cd9e71fb03
commit
f7cee6a1b9
@ -3,16 +3,16 @@
|
||||
|
||||
void container_map(swayc_t *container, void (*f)(swayc_t *view, void *data), void *data) {
|
||||
if (!container->children) {
|
||||
return NULL;
|
||||
return;
|
||||
}
|
||||
int i;
|
||||
for (i = 0; i < container->children->length; ++i) {
|
||||
swayc_t *child = container->children->items[i];
|
||||
f(child, data);
|
||||
|
||||
if(child->children)
|
||||
if (child->children) {
|
||||
container_map(child, f, data);
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user