rename container_for_each_descendent

This commit is contained in:
Tony Crisci 2018-03-29 23:08:59 -04:00
parent 4c394a0e9e
commit 92c58b1e63
6 changed files with 8 additions and 8 deletions

View file

@ -154,7 +154,7 @@ struct sway_container *container_output_create(
struct sway_container *container_workspace_create(
struct sway_container *output, const char *name) {
if (!sway_assert(output,
"container_workspace_create called with null output")) {
"container_workspace_create called with null output")) {
return NULL;
}
wlr_log(L_DEBUG, "Added workspace %s for output %s", name, output->name);
@ -178,7 +178,7 @@ struct sway_container *container_workspace_create(
struct sway_container *container_view_create(struct sway_container *sibling,
struct sway_view *sway_view) {
if (!sway_assert(sibling,
"container_view_create called with NULL sibling/parent")) {
"container_view_create called with NULL sibling/parent")) {
return NULL;
}
const char *title = view_get_title(sway_view);
@ -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) {

View file

@ -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];
}

View file

@ -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 = {