diff --git a/examples/idle-inhibit.c b/examples/idle-inhibit.c index dafaad4a3..829da8514 100644 --- a/examples/idle-inhibit.c +++ b/examples/idle-inhibit.c @@ -192,7 +192,8 @@ int main(int argc, char **argv) { return EXIT_FAILURE; } - wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, NULL, 0); + EGLint attribs[] = { EGL_NONE }; + wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, attribs, 0); struct wl_surface *surface = wl_compositor_create_surface(compositor); struct xdg_surface *xdg_surface = diff --git a/examples/input-inhibitor.c b/examples/input-inhibitor.c index fe726e0b8..06aa4142e 100644 --- a/examples/input-inhibitor.c +++ b/examples/input-inhibitor.c @@ -157,7 +157,8 @@ int main(int argc, char **argv) { input_inhibit_manager); assert(input_inhibitor); - wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, NULL, 0); + EGLint attribs[] = { EGL_NONE }; + wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, attribs, 0); struct wl_surface *surface = wl_compositor_create_surface(compositor); assert(surface); diff --git a/examples/keyboard-shortcuts-inhibit.c b/examples/keyboard-shortcuts-inhibit.c index bc90f7b49..8551973c8 100644 --- a/examples/keyboard-shortcuts-inhibit.c +++ b/examples/keyboard-shortcuts-inhibit.c @@ -224,7 +224,8 @@ int main(int argc, char **argv) { return EXIT_FAILURE; } - wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, NULL, 0); + EGLint attribs[] = { EGL_NONE }; + wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, attribs, 0); struct wl_surface *surface = wl_compositor_create_surface(compositor); struct xdg_surface *xdg_surface = diff --git a/examples/pointer-constraints.c b/examples/pointer-constraints.c index 3dedfb0a8..19b28e98c 100644 --- a/examples/pointer-constraints.c +++ b/examples/pointer-constraints.c @@ -211,7 +211,8 @@ int main(int argc, char **argv) { wl_region_add(joint_region, 256, 256, 256, 256); regions[REGION_TYPE_JOINT] = joint_region; - wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, NULL, 0); + EGLint attribs[] = { EGL_NONE }; + wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, attribs, 0); struct wl_surface *surface = wl_compositor_create_surface(compositor); struct xdg_surface *xdg_surface = diff --git a/examples/relative-pointer-unstable-v1.c b/examples/relative-pointer-unstable-v1.c index 4df94d035..b6e56f84e 100644 --- a/examples/relative-pointer-unstable-v1.c +++ b/examples/relative-pointer-unstable-v1.c @@ -443,7 +443,8 @@ int main(int argc, char **argv) { e->egl = calloc(1, sizeof(struct wlr_egl)); e->width = e->height = 512; - wlr_egl_init(e->egl, EGL_PLATFORM_WAYLAND_EXT, display, NULL, 0); + EGLint attribs[] = { EGL_NONE }; + wlr_egl_init(e->egl, EGL_PLATFORM_WAYLAND_EXT, display, attribs, 0); /* Create the surface and xdg_toplevels, and set listeners */ diff --git a/examples/text-input.c b/examples/text-input.c index 6f555a67a..cc89cbf4d 100644 --- a/examples/text-input.c +++ b/examples/text-input.c @@ -363,8 +363,8 @@ int main(int argc, char **argv) { zwp_text_input_v3_add_listener(text_input, &text_input_listener, NULL); - - wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, NULL, 0); + EGLint attribs[] = { EGL_NONE }; + wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, attribs, 0); struct wl_surface *surface = wl_compositor_create_surface(compositor); struct xdg_surface *xdg_surface = diff --git a/examples/toplevel-decoration.c b/examples/toplevel-decoration.c index 3fb90d180..4f309feb3 100644 --- a/examples/toplevel-decoration.c +++ b/examples/toplevel-decoration.c @@ -218,7 +218,8 @@ int main(int argc, char **argv) { return EXIT_FAILURE; } - wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, NULL, 0); + EGLint attribs[] = { EGL_NONE }; + wlr_egl_init(&egl, EGL_PLATFORM_WAYLAND_EXT, display, attribs, 0); struct wl_surface *surface = wl_compositor_create_surface(compositor); struct xdg_surface *xdg_surface =