summaryrefslogtreecommitdiff
path: root/sway/tree/layout.c
diff options
context:
space:
mode:
authorTony Crisci <[email protected]>2018-02-10 19:53:50 -0500
committerTony Crisci <[email protected]>2018-02-10 19:53:50 -0500
commit93084c9cf80901b160e0eb50b72a8e607289a678 (patch)
tree0b6c6753bb52f8382110e8ab5d9755f4807f4ee7 /sway/tree/layout.c
parentce3a1b3922850124c562e56ea9a783b090e969b9 (diff)
remove old focus member
Diffstat (limited to 'sway/tree/layout.c')
-rw-r--r--sway/tree/layout.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c
index 16d5cbc5..3651d279 100644
--- a/sway/tree/layout.c
+++ b/sway/tree/layout.c
@@ -84,8 +84,6 @@ swayc_t *add_sibling(swayc_t *fixed, swayc_t *active) {
int i = index_child(fixed);
list_insert(parent->children, i + 1, active);
active->parent = parent;
- // focus new child
- parent->focused = active;
return active->parent;
}
@@ -96,9 +94,6 @@ void add_child(swayc_t *parent, swayc_t *child) {
list_add(parent->children, child);
child->parent = parent;
// set focus for this container
- if (!parent->focused) {
- parent->focused = child;
- }
/* TODO WLR
if (parent->type == C_WORKSPACE && child->type == C_VIEW && (parent->workspace_layout == L_TABBED || parent->workspace_layout == L_STACKED)) {
child = new_container(child, parent->workspace_layout);