mirror of
https://github.com/yshui/picom.git
synced 2025-04-21 18:03:02 -04:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue