aboutsummaryrefslogtreecommitdiff
path: root/examples/idle-inhibit.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/idle-inhibit.c')
-rw-r--r--examples/idle-inhibit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/idle-inhibit.c b/examples/idle-inhibit.c
index dafaad4a..829da851 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 =