core: check experimental_backends before using backend_list[backend]

Fixes #258

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-11-10 18:10:23 +00:00
parent 30e9e2dc9f
commit fe9fec84dc
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 2 additions and 2 deletions

View File

@ -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;