Commit 0cf81fbdf9cffd06dd505040b451200a46b7a058

Ryan C. Gordon 2015-08-14T23:30:46

Minor coding convention fix.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/video/x11/SDL_x11keyboard.c b/src/video/x11/SDL_x11keyboard.c
index 8ae80c2..932108e 100644
--- a/src/video/x11/SDL_x11keyboard.c
+++ b/src/video/x11/SDL_x11keyboard.c
@@ -307,8 +307,9 @@ X11_UpdateKeymap(_THIS)
     
 #if SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM
     XkbStateRec state;
-    if(0 == X11_XkbGetState(data->display, XkbUseCoreKbd, &state))
+    if (X11_XkbGetState(data->display, XkbUseCoreKbd, &state == Success)) {
         group = state.group;
+    }
 #endif