diff options
| author | Manolo Gouy <Manolo> | 2010-12-22 07:09:25 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-12-22 07:09:25 +0000 |
| commit | 7a75f5b923f2ea2af30eeba25349f11d4f7f6738 (patch) | |
| tree | 8ee255fd686cc4278be5d0772fd846746b85c342 | |
| parent | acfc66b01bffa7b86eb1999aca567c5a249d95e1 (diff) | |
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
| -rw-r--r-- | src/Fl_x.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 4303f0416..162572f6c 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -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: |
