diff --git a/sys/v4l2/gstv4l2xoverlay.c b/sys/v4l2/gstv4l2xoverlay.c index 60d0919067..f1c4d5196d 100644 --- a/sys/v4l2/gstv4l2xoverlay.c +++ b/sys/v4l2/gstv4l2xoverlay.c @@ -32,6 +32,8 @@ #include #include #include +/* for XkbKeycodeToKeysym */ +#include #include @@ -323,7 +325,7 @@ event_refresh (gpointer data) case KeyPress: case KeyRelease: g_mutex_lock (v4l2xv->mutex); - keysym = XKeycodeToKeysym (v4l2xv->dpy, e.xkey.keycode, 0); + keysym = XkbKeycodeToKeysym (v4l2xv->dpy, e.xkey.keycode, 0, 0); if (keysym != NoSymbol) { key_str = XKeysymToString (keysym); } else {