Don't call con_focus in tree_move

Fixes:
- Issue where moving an urgent (unfocused) window resets it's urgency
hint.
- Moving an unfocused container to a new parent should not move it to
the top of the focus stack.
This commit is contained in:
Orestis Floros
2017-09-22 04:48:32 +03:00
parent 6222ab1084
commit d66fa51f33
3 changed files with 44 additions and 5 deletions

View File

@ -374,11 +374,6 @@ void tree_move(Con *con, int direction) {
}
end:
/* We need to call con_focus() to fix the focus stack "above" the container
* we just inserted the focused container into (otherwise, the parent
* container(s) would still point to the old container(s)). */
con_focus(con);
/* force re-painting the indicators */
FREE(con->deco_render_params);