aboutsummaryrefslogtreecommitdiff
path: root/examples/input-inhibitor.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-01-04 11:30:30 +0100
committerSimon Ser <contact@emersion.fr>2021-01-04 11:30:30 +0100
commit198560fc1fe5e09f539c278b190eaf44b1402deb (patch)
treec3f43ba304519312879c61153dffb34b8c822830 /examples/input-inhibitor.c
parent9714638f3b521e10dc4649d62be41f6a5771ee38 (diff)
examples: request an EGL config
Client examples using wlr_egl would fail with EGL_BAD_CONFIG because they need an EGL config. Set the config attribs to a non-NULL value to make sure wlr_egl creates an EGL config. Fixes: 037710b1d428 ("render/egl: support config-less wlr_egl")
Diffstat (limited to 'examples/input-inhibitor.c')
-rw-r--r--examples/input-inhibitor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/input-inhibitor.c b/examples/input-inhibitor.c
index fe726e0b..06aa4142 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);