From 0cf81fbdf9cffd06dd505040b451200a46b7a058 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 14 Aug 2015 23:30:46 -0400 Subject: [PATCH] Minor coding convention fix. --- src/video/x11/SDL_x11keyboard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11keyboard.c b/src/video/x11/SDL_x11keyboard.c index 8ae80c246..932108ef3 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