mirror of
https://github.com/yawut/SDL.git
synced 2026-05-06 05:09:34 -05:00
Fixed compiler warning (gcc w/ -Wall) for unused variable, and checked for
error return code too. --HG-- branch : SDL-1.2
This commit is contained in:
parent
902eba96d6
commit
b3d0bc9780
|
|
@ -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…
Reference in New Issue
Block a user