Skip to content
Permalink
Browse files

Fixed compiler warning (gcc w/ -Wall) for unused variable, and checke…

…d for

 error return code too.
  • Loading branch information
icculus committed Jul 8, 2007
1 parent 28a91c7 commit 800e75f926cb72327d1ddfbcc5c20e8a19f05f97
Showing with 11 additions and 2 deletions.
  1. +11 −2 src/video/x11/SDL_x11video.c
@@ -538,8 +538,17 @@ static void create_aux_windows(_THIS)
whenever we re-create an IC. */
unsigned long mask = 0;
char *ret = pXGetICValues(SDL_IC, XNFilterEvents, &mask, NULL);
XSelectInput(SDL_Display, WMwindow, app_event_mask | mask);
XSetICFocus(SDL_IC);
if (ret != NULL) {
XUnsetICFocus(SDL_IC);
XDestroyIC(SDL_IC);
SDL_IC = NULL;
SDL_SetError("no input context could be created");
XCloseIM(SDL_IM);
SDL_IM = NULL;
} else {
XSelectInput(SDL_Display, WMwindow, app_event_mask | mask);
XSetICFocus(SDL_IC);
}
}
}
}

0 comments on commit 800e75f

Please sign in to comment.