]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: avert crash by fixing focus when creating output containers (#2966)
authorMichael Stapelberg <stapelberg@users.noreply.github.com>
Mon, 18 Sep 2017 14:37:34 +0000 (16:37 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 19 Sep 2017 13:47:01 +0000 (15:47 +0200)
fixes #2854

src/randr.c

index 88cad7c51d5c9df1c2f32f44463665da4c9b31cd..19c40577ed1401316258a5e06697de1742a089a5 100644 (file)
@@ -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);
 }
 
 /*