Permalink
Browse files

pugl: XKeycodeToKeysym is deprecated, use XLookupKeysym

  • Loading branch information...
1 parent 78ca7f9 commit 539a5b6ffbdfeb60e3ce38dccc8809ff014e0309 @x42 x42 committed Mar 24, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 pugl/pugl_x11.c
View
@@ -348,8 +348,7 @@ puglProcessEvents(PuglView* view)
}
if (!repeated && view->keyboardFunc) {
- KeySym sym = XKeycodeToKeysym(
- view->impl->display, event.xkey.keycode, 0);
+ KeySym sym = XLookupKeysym(&event.xkey, 0);
PuglKey special = keySymToSpecial(sym);
if (!special) {
view->keyboardFunc(view, false, sym);

0 comments on commit 539a5b6

Please sign in to comment.