diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-04-02 14:15:40 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-04-02 14:15:40 -0400 |
commit | 357a4401fa117416f3182a5f91d27b52b114f3ee (patch) | |
tree | 8ffb68c96ac327aa2b37ec40bbf982022e934365 /sway/tree/layout.c | |
parent | Merge branch 'wlroots' into split-containers (diff) | |
download | sway-357a4401fa117416f3182a5f91d27b52b114f3ee.tar.gz sway-357a4401fa117416f3182a5f91d27b52b114f3ee.tar.zst sway-357a4401fa117416f3182a5f91d27b52b114f3ee.zip |
address feedback
Diffstat (limited to 'sway/tree/layout.c')
-rw-r--r-- | sway/tree/layout.c | 5 |
1 files changed, 2 insertions, 3 deletions
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, | |||
101 | parent, parent->type, parent->width, parent->height); | 101 | parent, parent->type, parent->width, parent->height); |
102 | list_add(parent->children, child); | 102 | list_add(parent->children, child); |
103 | child->parent = parent; | 103 | child->parent = parent; |
104 | // TODO: set focus for this container? | ||
105 | sway_input_manager_set_focus(input_manager, child); | ||
106 | } | 104 | } |
107 | 105 | ||
108 | struct sway_container *container_reap_empty(struct sway_container *container) { | 106 | struct sway_container *container_reap_empty(struct sway_container *container) { |
@@ -632,7 +630,8 @@ struct sway_container *container_get_in_direction( | |||
632 | wrap_candidate = parent->children->items[0]; | 630 | wrap_candidate = parent->children->items[0]; |
633 | } | 631 | } |
634 | if (config->force_focus_wrapping) { | 632 | if (config->force_focus_wrapping) { |
635 | return sway_seat_get_focus_by_type(seat, wrap_candidate, C_VIEW); | 633 | return sway_seat_get_focus_by_type(seat, |
634 | wrap_candidate, C_VIEW); | ||
636 | } | 635 | } |
637 | } | 636 | } |
638 | } else { | 637 | } else { |