mirror of https://github.com/yshui/picom.git
backend: egl: simplify usage of the target window parameter in egl_init
This commit is contained in:
parent
249f681857
commit
825cc563e1
|
@ -211,8 +211,8 @@ static backend_t *egl_init(session_t *ps, xcb_window_t target) {
|
|||
}
|
||||
// clang-format on
|
||||
|
||||
gd->target_win = eglCreatePlatformWindowSurfaceProc(
|
||||
gd->display, config, (xcb_window_t[]){target}, NULL);
|
||||
gd->target_win =
|
||||
eglCreatePlatformWindowSurfaceProc(gd->display, config, &target, NULL);
|
||||
if (gd->target_win == EGL_NO_SURFACE) {
|
||||
log_error("Failed to create EGL surface.");
|
||||
goto end;
|
||||
|
|
Loading…
Reference in New Issue