Fixed build for X11

This commit is contained in:
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 #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;
} }