From: Michael Stapelberg Date: Mon, 2 May 2011 09:06:13 +0000 (+0200) Subject: Bugfix: Before rendering, attach the con to its floating_con X-Git-Tag: tree-pr3~54 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7e51f626ef096c4d1bbbcb0c25cc27685c78bca7;p=i3%2Fi3 Bugfix: Before rendering, attach the con to its floating_con Otherwise, the rendering will produce negative coordinates. --- diff --git a/src/floating.c b/src/floating.c index 875407a7..85aaa6e7 100644 --- a/src/floating.c +++ b/src/floating.c @@ -147,12 +147,13 @@ void floating_enable(Con *con, bool automatic) { } } + TAILQ_INSERT_TAIL(&(nc->nodes_head), con, nodes); + TAILQ_INSERT_TAIL(&(nc->focus_head), con, focused); + /* render the cons to get initial window_rect correct */ render_con(nc, false); render_con(con, false); - TAILQ_INSERT_TAIL(&(nc->nodes_head), con, nodes); - TAILQ_INSERT_TAIL(&(nc->focus_head), con, focused); // TODO: don’t influence focus handling when Con was not focused before. if (set_focus) con_focus(con);