---
 tests/egl/egl-util.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/egl/egl-util.c b/tests/egl/egl-util.c
index 5f4fffe..226ba0e 100644
--- a/tests/egl/egl-util.c
+++ b/tests/egl/egl-util.c
@@ -30,6 +30,7 @@
  * \author Kristian Høgsberg <[email protected]>
  */
 
+#include <X11/XKBlib.h>
 #include "piglit-util-gl-common.h"
 #include "egl-util.h"
 
@@ -154,8 +155,9 @@ event_loop(struct egl_state *state, const struct egl_test 
*test)
                }
 
                if (event.type == KeyPress) {
-                       KeySym sym = XKeycodeToKeysym (state->dpy,
-                                                      event.xkey.keycode, 0);
+                       KeySym sym = XkbKeycodeToKeysym (state->dpy,
+                                                        event.xkey.keycode,
+                                                        0, 0);
 
                        if (sym == XK_Escape || sym == XK_q || sym == XK_Q)
                                break;
-- 
1.8.5.3

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to