Browse Source

x11: replace deprecated XKeycodeToKeysym() with XLookupKeysym().

tags/v0.99.beta20
Sam Hocevar 9 years ago
parent
commit
55f85166e5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      caca/driver/x11.c

+ 1
- 1
caca/driver/x11.c View File

@@ -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;


Loading…
Cancel
Save