util: implement eventloop for wayland platform

Graphics / Mesa 3D Graphics Library / Piglit - Tapani Pälli [intel.com] - 18 November 2016 00:56 UTC

v2: lots of fixes based on review from Pekka Paalanen

- fix leak of fd in keymap handler- fix leak of wayland registry- just call wl_display_dispatch in process_events- act when key pressed (matches x11 backend behavior)- just pass any keys, now tests that do special stuff with keys work (like fbo-clear-formats)

v3: move seat and keyboard to piglit_wl_framework structure- fix leaks reported by Pekka

It should be noted that patch does not take in to account key modifiers, multiple keyboards or usecases with multiple seats, this functionality can be be added later if wanted.

2881f72 util: implement eventloop for wayland platform
.../util/piglit-framework-gl/piglit_wl_framework.c | 258 ++++++++++++++++++--
1 file changed, 242 insertions(+), 16 deletions(-)

Upstream: cgit.freedesktop.org


  • Share