Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 800e75f
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/video/x11/SDL_x11video.c
Expand Up @@ -538,8 +538,17 @@ static void create_aux_windows(_THIS)
whenever we re-create an IC. */ whenever we re-create an IC. */
unsigned long mask = 0; unsigned long mask = 0;
char *ret = pXGetICValues(SDL_IC, XNFilterEvents, &mask, NULL); char *ret = pXGetICValues(SDL_IC, XNFilterEvents, &mask, NULL);
XSelectInput(SDL_Display, WMwindow, app_event_mask | mask); if (ret != NULL) {
XSetICFocus(SDL_IC); 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);
}
} }
} }
} }
Expand Down

0 comments on commit 800e75f

Please sign in to comment.