Patched to compile.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 14 Aug 2015 23:38:40 -0400
changeset 9844 7e9624bde3a7
parent 9843 13bbc6d4ab12
child 9845 41ce18cb4b3b
Patched to compile.
src/video/x11/SDL_x11keyboard.c
--- a/src/video/x11/SDL_x11keyboard.c	Fri Aug 14 23:30:46 2015 -0400
+++ b/src/video/x11/SDL_x11keyboard.c	Fri Aug 14 23:38:40 2015 -0400
@@ -306,9 +306,11 @@
     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