From: Michael Stapelberg Date: Mon, 18 Sep 2017 14:37:34 +0000 (+0200) Subject: Bugfix: avert crash by fixing focus when creating output containers (#2966) X-Git-Tag: 4.15~75 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e48441ecbdee4dae030c2e89a1c8836dd5a31c8a;p=i3%2Fi3 Bugfix: avert crash by fixing focus when creating output containers (#2966) fixes #2854 --- diff --git a/src/randr.c b/src/randr.c index 88cad7c5..19c40577 100644 --- a/src/randr.c +++ b/src/randr.c @@ -380,6 +380,10 @@ void output_init_con(Output *output) { FREE(name); DLOG("attaching\n"); con_attach(bottomdock, con, false); + + /* Change focus to the content container */ + TAILQ_REMOVE(&(con->focus_head), content, focused); + TAILQ_INSERT_HEAD(&(con->focus_head), content, focused); } /*