Removed warning on deprecated `XKeycodeToKeysym()`

New X11 headers define `XKeycodeToKeysym()` as deprecated.

I looked around and found a solution, which involves
`XGetKeyboardMapping()` and `XFree()`:

http://stackoverflow.com/a/14408715

I have zero knowledge of X11 so it might be wrong in any way.