aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/layout.c
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2018-02-10 19:53:50 -0500
committerLibravatar Tony Crisci <tony@dubstepdish.com>2018-02-10 19:53:50 -0500
commit93084c9cf80901b160e0eb50b72a8e607289a678 (patch)
tree0b6c6753bb52f8382110e8ab5d9755f4807f4ee7 /sway/tree/layout.c
parentproperly pick next focus (diff)
downloadsway-93084c9cf80901b160e0eb50b72a8e607289a678.tar.gz
sway-93084c9cf80901b160e0eb50b72a8e607289a678.tar.zst
sway-93084c9cf80901b160e0eb50b72a8e607289a678.zip
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) {
84 int i = index_child(fixed); 84 int i = index_child(fixed);
85 list_insert(parent->children, i + 1, active); 85 list_insert(parent->children, i + 1, active);
86 active->parent = parent; 86 active->parent = parent;
87 // focus new child
88 parent->focused = active;
89 return active->parent; 87 return active->parent;
90} 88}
91 89
@@ -96,9 +94,6 @@ void add_child(swayc_t *parent, swayc_t *child) {
96 list_add(parent->children, child); 94 list_add(parent->children, child);
97 child->parent = parent; 95 child->parent = parent;
98 // set focus for this container 96 // set focus for this container
99 if (!parent->focused) {
100 parent->focused = child;
101 }
102 /* TODO WLR 97 /* TODO WLR
103 if (parent->type == C_WORKSPACE && child->type == C_VIEW && (parent->workspace_layout == L_TABBED || parent->workspace_layout == L_STACKED)) { 98 if (parent->type == C_WORKSPACE && child->type == C_VIEW && (parent->workspace_layout == L_TABBED || parent->workspace_layout == L_STACKED)) {
104 child = new_container(child, parent->workspace_layout); 99 child = new_container(child, parent->workspace_layout);