Fixed build for X11

Sam Lantinga 2016-10-01 14:54:05 -07:00
parent 7b34f47e19
commit d2c8c5094c
1 changed files with 2 additions and 1 deletions

View File

@ -330,13 +330,14 @@ X11_UpdateKeymap(_THIS)
#if SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM
{
XkbStateRec state;
if (data->xkb) {
X11_XkbGetUpdatedMap(data->display, XkbAllClientInfoMask, data->xkb);
} else {
data->xkb = X11_XkbGetMap(data->display, XkbAllClientInfoMask, XkbUseCoreKbd);
}
XkbStateRec state;
if (X11_XkbGetState(data->display, XkbUseCoreKbd, &state) == Success) {
group = state.group;
}