Fixed compiler warning (gcc w/ -Wall) for unused variable, and checked for
error return code too. --HG-- branch : SDL-1.2 extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402435
This commit is contained in:
parent
69a0d935d9
commit
f5f620d183
1 changed files with 11 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue