Bugfix: avert crash by fixing focus when creating output containers (#2966)

fixes #2854
next
Michael Stapelberg 2017-09-18 16:37:34 +02:00 committed by GitHub
parent d1296cd1cf
commit e48441ecbd
1 changed files with 4 additions and 0 deletions

View 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);
}
/*