aboutsummaryrefslogtreecommitdiff
path: root/sway/tree
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2018-04-02 14:15:40 -0400
committerTony Crisci <tony@dubstepdish.com>2018-04-02 14:15:40 -0400
commit357a4401fa117416f3182a5f91d27b52b114f3ee (patch)
tree8ffb68c96ac327aa2b37ec40bbf982022e934365 /sway/tree
parent2187684bd09928748f8b3a82c2e25e5ae82f5ae6 (diff)
downloadsway-357a4401fa117416f3182a5f91d27b52b114f3ee.tar.xz
address feedback
Diffstat (limited to 'sway/tree')
-rw-r--r--sway/tree/container.c2
-rw-r--r--sway/tree/layout.c5
2 files changed, 3 insertions, 4 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 41ba973f..9205d929 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -424,7 +424,7 @@ bool container_has_anscestor(struct sway_container *descendant,
return false;
}
-bool find_child_func(struct sway_container *con, void *data) {
+static bool find_child_func(struct sway_container *con, void *data) {
struct sway_container *child = data;
return con == child;
}
diff --git a/sway/tree/layout.c b/sway/tree/layout.c
index 83e4fe37..e13c2ac4 100644
--- a/sway/tree/layout.c
+++ b/sway/tree/layout.c
@@ -101,8 +101,6 @@ void container_add_child(struct sway_container *parent,
parent, parent->type, parent->width, parent->height);
list_add(parent->children, child);
child->parent = parent;
- // TODO: set focus for this container?
- sway_input_manager_set_focus(input_manager, child);
}
struct sway_container *container_reap_empty(struct sway_container *container) {
@@ -632,7 +630,8 @@ struct sway_container *container_get_in_direction(
wrap_candidate = parent->children->items[0];
}
if (config->force_focus_wrapping) {
- return sway_seat_get_focus_by_type(seat, wrap_candidate, C_VIEW);
+ return sway_seat_get_focus_by_type(seat,
+ wrap_candidate, C_VIEW);
}
}
} else {