Skip to content

Commit fe9fec8

Browse files
committed
core: check experimental_backends before using backend_list[backend]
Fixes chjj#258 Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
1 parent 30e9e2d commit fe9fec8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/picom.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1909,8 +1909,8 @@ static session_t *session_init(int argc, char **argv, Display *dpy,
19091909
// Target window must be initialized before the backend
19101910
//
19111911
// backend_operations::present == NULL means this backend doesn't need a target
1912-
// window
1913-
if (backend_list[ps->o.backend]->present != NULL) {
1912+
// window; non experimental backends always need a target window
1913+
if (!ps->o.experimental_backends || backend_list[ps->o.backend]->present != NULL) {
19141914
if (!ps->o.debug_mode) {
19151915
if (!init_overlay(ps)) {
19161916
goto err;

0 commit comments

Comments
 (0)