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.14.1~23 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7726b9a759f24e70c8d2cffce3c582930db93dc1;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); } /*