@ -131,7 +131,7 @@ struct sway_container *container_at(struct sway_container *parent,
/**
* Apply the function for each child of the container breadth first.
*/
void container_for_each(struct sway_container *container,
void container_for_each_descendent(struct sway_container *container,
void (*f)(struct sway_container *container, void *data), void *data);
#endif
@ -435,7 +435,7 @@ list_t *container_for_crit_tokens(list_t *tokens) {
struct list_tokens list_tokens =
(struct list_tokens){create_list(), tokens};
container_for_each(&root_container,
container_for_each_descendent(&root_container,
(void (*)(struct sway_container *, void *))container_match_add,
&list_tokens);
@ -130,7 +130,7 @@ struct sway_seat *sway_seat_create(struct sway_input_manager *input,
// init the focus stack
wl_list_init(&seat->focus_stack);
container_for_each(&root_container, collect_focus_iter, seat);
container_for_each_descendent(&root_container, collect_focus_iter, seat);
wl_signal_add(&root_container.sway_root->events.new_container,
&seat->new_container);
@ -400,7 +400,7 @@ struct sway_container *container_at(struct sway_container *parent,
return NULL;
}
void container_for_each(struct sway_container *con,
void container_for_each_descendent(struct sway_container *con,
void (*f)(struct sway_container *con, void *data), void *data) {
list_t *queue = get_bfs_queue();
if (!queue) {
@ -592,7 +592,7 @@ static struct sway_container *get_swayc_in_direction_under(
} else {
wlr_log(L_DEBUG,
"%s cont %d-%p dir %i sibling %d: %p", __func__, idx,
"cont %d-%p dir %i sibling %d: %p", idx,
container, dir, desired, parent->children->items[desired]);
return parent->children->items[desired];
@ -45,7 +45,7 @@ void view_set_size(struct sway_view *view, int width, int height) {
// TODO make view coordinates
// TODO make view coordinates in layout coordinates
void view_set_position(struct sway_view *view, double ox, double oy) {
if (view->iface.set_position) {
struct wlr_box box = {