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
Link: http://www.fltk.org/str.php?L2474
Version: 1.3-current
Index: src/Fl_x.cxx
===================================================================
--- src/Fl_x.cxx (revision 8036)
+++ 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;
@@ -1400,6 +1406,13 @@
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:
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs