Skip to content
Advertisement

Replace of XKeycodeToKeysym

When I try to build my code with the X11 headers in Ubuntu 12.04

JavaScript

What is the expected result? Compiles.

What happens instead?

JavaScript

As a result of https://bugs.freedesktop.org/show_bug.cgi?id=5349 XKeycodeToKeysym is now properly marked as being deprecated.

How to fix my code for warning free and correct build?

Thanks

Advertisement

Answer

Provided XKB is available then the simplest replacement for XKeycodeToKeysym is:

JavaScript

… and then the original question’s code could become:

JavaScript

notes:

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement