winex11: use XkbKeycodeToKeysym when using XKB
Alexandre Julliard
julliard at winehq.org
Thu Apr 29 14:05:25 CDT 2010
Alexandre Goujon <ale.goujon at gmail.com> writes:
> @@ -609,6 +609,11 @@ extern HMODULE x11drv_module;
> extern BYTE key_state_table[256];
> extern POINT cursor_pos;
>
> +#ifdef HAVE_XKB
> +#define XKeycodeToKeysym(dpy,kc,i) \
> + ( use_xkb ? XkbKeycodeToKeysym(dpy, kc, 0, i) : XKeycodeToKeysym(dpy, kc, i) )
> +#endif
> +
That would make the code very confusing. You should define some explicit
inline function instead.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list