Bugfix: avert crash by fixing focus when creating output containers (#2966)
fixes #2854
This commit is contained in:
parent
d1296cd1cf
commit
e48441ecbd
|
@ -380,6 +380,10 @@ void output_init_con(Output *output) {
|
||||||
FREE(name);
|
FREE(name);
|
||||||
DLOG("attaching\n");
|
DLOG("attaching\n");
|
||||||
con_attach(bottomdock, con, false);
|
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