Skip to content

Commit

Permalink
Patched to compile.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 15, 2015
1 parent 0cf81fb commit 0d8c3a0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/video/x11/SDL_x11keyboard.c
Expand Up @@ -306,9 +306,11 @@ X11_UpdateKeymap(_THIS)
SDL_GetDefaultKeymap(keymap);

#if SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM
XkbStateRec state;
if (X11_XkbGetState(data->display, XkbUseCoreKbd, &state == Success)) {
group = state.group;
{
XkbStateRec state;
if (X11_XkbGetState(data->display, XkbUseCoreKbd, &state) == Success) {
group = state.group;
}
}
#endif

Expand Down

0 comments on commit 0d8c3a0

Please sign in to comment.