From 23905f11162e395b3e984329fd41256e586f7cea Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 25 Jul 2012 22:47:55 +0300 Subject: [PATCH] XKeycodeToKeysym is deprecated --- source/input/keyboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/input/keyboard.cpp b/source/input/keyboard.cpp index 0f4d4ab..ab2f9ea 100644 --- a/source/input/keyboard.cpp +++ b/source/input/keyboard.cpp @@ -63,7 +63,7 @@ void Keyboard::input_event(const Graphics::Window::Event &event) case KeyPress: case KeyRelease: { - KeySym keysym = XKeycodeToKeysym(window.get_display().get_private().display, event.xevent.xkey.keycode, 0); + KeySym keysym = XLookupKeysym(const_cast(&event.xevent.xkey), 0); if(keysym!=NoSymbol) if(unsigned key = key_from_sys(keysym)) set_button_state(key, event.xevent.type==KeyPress, true); -- 2.43.0