Commit 0d8c3a0b76cef094968b1d7ad1443dc828edeca5

Ryan C. Gordon 2015-08-14T23:38:40

Patched to compile.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/src/video/x11/SDL_x11keyboard.c b/src/video/x11/SDL_x11keyboard.c
index 932108e..b04830f 100644
--- a/src/video/x11/SDL_x11keyboard.c
+++ b/src/video/x11/SDL_x11keyboard.c
@@ -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