Skip to content

Commit

Permalink
Fixed build for X11
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 1, 2016
1 parent 7b34f47 commit d2c8c50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/video/x11/SDL_x11keyboard.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit d2c8c50

Please sign in to comment.