DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2474
Version: 1.3-current


Many tanks for these detailed explanations.

Could you, please, tell me if the small patch below solves
the problem ?

Index: src/Fl_x.cxx
===================================================================
--- src/Fl_x.cxx        (revision 8022)
+++ src/Fl_x.cxx        (working copy)
@@ -1203,7 +1203,13 @@
     event = FL_UNFOCUS;
     break;
 
-  case KeyPress:
+  case KeyPress: {
+    XIMStyles *xim_styles = NULL;
+    if(!fl_xim_im || XGetIMValues(fl_xim_im, XNQueryInputStyle,
&xim_styles, NULL, NULL))) {
+      fl_init_xim();
+      }
+    XFree(xim_styles);
+    }
   case KeyRelease: {
   KEYPRESS:
     int keycode = xevent.xkey.keycode;


Link: http://www.fltk.org/str.php?L2474
Version: 1.3-current

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to