Fix STR #2474. This allows an FLTK application to be started at X startup and to respond to

X input methods even if the XIM server starts after the application.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8097 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2010-12-22 07:09:25 +00:00
parent acfc66b01b
commit 7a75f5b923

View File

@ -1400,6 +1400,12 @@ int fl_handle(const XEvent& thisevent)
fl_xmousewin = window;
in_a_window = true;
{ XIMStyles *xim_styles = NULL;
if(!fl_xim_im || XGetIMValues(fl_xim_im, XNQueryInputStyle, &xim_styles, NULL, NULL)) {
fl_init_xim();
}
XFree(xim_styles);
}
break;
case LeaveNotify: