X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Ftree.c;h=3a6579832cd683283145efbabdf77f93fd341909;hb=c56867792aa98ccedecfa40ca55e4a1a141a65c4;hp=22dcf5cc8b29e761e63fbaf1eeabc17f16b2a729;hpb=6aa6fa0af02575174f8bc7c41a6c0f3422cd3bba;p=i3%2Fi3 diff --git a/src/tree.c b/src/tree.c index 22dcf5cc..3a657983 100644 --- a/src/tree.c +++ b/src/tree.c @@ -9,24 +9,6 @@ struct Con *focused; struct all_cons_head all_cons = TAILQ_HEAD_INITIALIZER(all_cons); -/* - * Sets input focus to the given container. Will be updated in X11 in the next - * run of x_push_changes(). - * - */ -void con_focus(Con *con) { - assert(con != NULL); - - /* 1: set focused-pointer to the new con */ - /* 2: exchange the position of the container in focus stack of the parent all the way up */ - TAILQ_REMOVE(&(con->parent->focus_head), con, focused); - TAILQ_INSERT_HEAD(&(con->parent->focus_head), con, focused); - if (con->parent->parent != NULL) - con_focus(con->parent); - - focused = con; -} - /* * Loads tree from ~/.i3/_restart.json *