mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
remove old focus member
This commit is contained in:
parent
ce3a1b3922
commit
93084c9cf8
6 changed files with 19 additions and 22 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue