diff --git a/sys/vdpau/gstvdpsink.c b/sys/vdpau/gstvdpsink.c index 5a5677eb48..35ea182a40 100644 --- a/sys/vdpau/gstvdpsink.c +++ b/sys/vdpau/gstvdpsink.c @@ -30,6 +30,8 @@ #include #include +#include + /* Debugging category */ #include @@ -387,7 +389,8 @@ gst_vdp_sink_handle_xevents (VdpSink * vdp_sink) e.xkey.keycode, e.xkey.x, e.xkey.x); g_mutex_lock (vdp_sink->x_lock); keysym = - XKeycodeToKeysym (vdp_sink->device->display, e.xkey.keycode, 0); + XkbKeycodeToKeysym (vdp_sink->device->display, e.xkey.keycode, 0, + 0); g_mutex_unlock (vdp_sink->x_lock); if (keysym != NoSymbol) { char *key_str = NULL;