From 55f85166e5d58c3a3597bd29333437d8e3ca1e12 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 30 May 2015 20:30:27 +0200 Subject: [PATCH] x11: replace deprecated XKeycodeToKeysym() with XLookupKeysym(). --- caca/driver/x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caca/driver/x11.c b/caca/driver/x11.c index 6bd04cf..fc5f95c 100644 --- a/caca/driver/x11.c +++ b/caca/driver/x11.c @@ -626,7 +626,7 @@ static int x11_get_event(caca_display_t *dp, caca_privevent_t *ev) return 1; } - keysym = XKeycodeToKeysym(dp->drv.p->dpy, xevent.xkey.keycode, 0); + keysym = XLookupKeysym(&xevent.xkey, 0); switch(keysym) { case XK_F1: ev->data.key.ch = CACA_KEY_F1; break;