X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Ffloating.c;h=0637521fbce020630c22ec98bd8f2efffee3785a;hb=4f98bbf5ffc18a7b53c5545ce403e4667d75a703;hp=f7dd2ebc57a134b8b8f4b21668d33350501fd39e;hpb=714c8fcbe7f492327f77b47eba60a957068ca96a;p=i3%2Fi3 diff --git a/src/floating.c b/src/floating.c index f7dd2ebc..0637521f 100644 --- a/src/floating.c +++ b/src/floating.c @@ -238,11 +238,10 @@ void floating_disable(Con *con, bool automatic) { /* con_fix_percent will adjust the percent value */ con->percent = 0.0; - TAILQ_INSERT_TAIL(&(con->parent->nodes_head), con, nodes); - TAILQ_INSERT_TAIL(&(con->parent->focus_head), con, focused); - con->floating = FLOATING_USER_OFF; + con_attach(con, con->parent, false); + con_fix_percent(con->parent); // TODO: don’t influence focus handling when Con was not focused before. con_focus(con);