Fixed build for X11
parent
7b34f47e19
commit
d2c8c5094c
|
@ -330,13 +330,14 @@ X11_UpdateKeymap(_THIS)
|
||||||
|
|
||||||
#if SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM
|
#if SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM
|
||||||
{
|
{
|
||||||
|
XkbStateRec state;
|
||||||
|
|
||||||
if (data->xkb) {
|
if (data->xkb) {
|
||||||
X11_XkbGetUpdatedMap(data->display, XkbAllClientInfoMask, data->xkb);
|
X11_XkbGetUpdatedMap(data->display, XkbAllClientInfoMask, data->xkb);
|
||||||
} else {
|
} else {
|
||||||
data->xkb = X11_XkbGetMap(data->display, XkbAllClientInfoMask, XkbUseCoreKbd);
|
data->xkb = X11_XkbGetMap(data->display, XkbAllClientInfoMask, XkbUseCoreKbd);
|
||||||
}
|
}
|
||||||
|
|
||||||
XkbStateRec state;
|
|
||||||
if (X11_XkbGetState(data->display, XkbUseCoreKbd, &state) == Success) {
|
if (X11_XkbGetState(data->display, XkbUseCoreKbd, &state) == Success) {
|
||||||
group = state.group;
|
group = state.group;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue