Skip to content

Commit

Permalink
core: check experimental_backends before using backend_list[backend]
Browse files Browse the repository at this point in the history
Fixes chjj#258

Signed-off-by: Yuxuan Shui <[email protected]>
  • Loading branch information
yshui committed Nov 10, 2019
1 parent 30e9e2d commit fe9fec8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/picom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fe9fec8

Please sign in to comment.