Xpra: Ticket #149: use XkbKeycodeToKeysym instead of XKeycodeToKeysym (deprecation)

We get these warnings:

/usr/include/gtk-2.0/gtk/gtkitemfactory.h:47:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
bindings.c: In function '__pyx_f_8wimpiggy_8lowlevel_8bindings_KeysymToKeycodes':
bindings.c:10353:7: warning: 'XKeycodeToKeysym' is deprecated (declared at /usr/include/X11/Xlib.h:1695) [-Wdeprecated-declarations]
bindings.c: In function '__pyx_f_8wimpiggy_8lowlevel_8bindings__get_modifier_mappings':
bindings.c:11494:9: warning: 'XKeycodeToKeysym' is deprecated (declared at /usr/include/X11/Xlib.h:1695) [-Wdeprecated-declarations]
bindings.c: In function '__pyx_pf_8wimpiggy_8lowlevel_8bindings_68get_keycodes_down':
bindings.c:12712:5: warning: 'XKeycodeToKeysym' is deprecated (declared at /usr/include/X11/Xlib.h:1695) [-Wdeprecated-declarations]

See freedesktop.org bug 25732

Together with the fix in 108#comment:12, this should fix most keyboard related issues?

Fri, 22 Jun 2012 09:47:04 GMT - Antoine Martin: status, description changed

Fri, 22 Jun 2012 10:20:46 GMT - Antoine Martin:

We may have to use more than just XkbKeycodeToKeysym... there's a whole new API to use in Xkb, with very little in terms of "howto" documentation.

Maybe we can get away with just figuring out "group" and "level"?

This ought to allow us to fix the following bugs:

And maybe also:

Fri, 22 Jun 2012 20:27:15 GMT - Antoine Martin: description changed

Thu, 27 Sep 2012 15:23:47 GMT - Antoine Martin: milestone changed

Mon, 01 Oct 2012 16:44:30 GMT - Antoine Martin: status changed; resolution set

done in r1772

Sat, 23 Jan 2021 04:46:52 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/149