core: check experimental_backends before using backend_list[backend]
Fixes #258 Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
30e9e2dc9f
commit
fe9fec84dc
|
@ -1909,8 +1909,8 @@ static session_t *session_init(int argc, char **argv, Display *dpy,
|
|||
// Target window must be initialized before the backend
|
||||
//
|
||||
// backend_operations::present == NULL means this backend doesn't need a target
|
||||
// window
|
||||
if (backend_list[ps->o.backend]->present != NULL) {
|
||||
// window; non experimental backends always need a target window
|
||||
if (!ps->o.experimental_backends || backend_list[ps->o.backend]->present != NULL) {
|
||||
if (!ps->o.debug_mode) {
|
||||
if (!init_overlay(ps)) {
|
||||
goto err;
|
||||
|
|
Loading…
Reference in New Issue