Bugfix: avert crash by fixing focus when creating output containers (#2966)
fixes #2854
This commit is contained in:
parent
0b6d851d7c
commit
7726b9a759
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue