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

[STR New]

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


Trying to test utf8 stuff on Linux/Slackware, got "XOpenIM failed", this
patch works for me. By default X11 sets input method to client/server
model, but no server is included in Xorg/Xfree distros, patch tries local
input method if default failed.


Link: http://www.fltk.org/str.php?L1953
Version: 1.3-current
--- fltk118-utf8-2008-02-24/src/Fl_x.cxx        2007-12-17 19:37:13.000000000 
+0200
+++ fltk118-utf8-2008-02-24.new/src/Fl_x.cxx    2008-05-02 15:22:49.000000000 
+0300
@@ -500,6 +500,10 @@
         if (fl_xim_im) return;
 
         fl_xim_im = XOpenIM(fl_display, NULL, NULL, NULL);
+       if (!fl_xim_im) { // try X11 local input method
+               XSetLocaleModifiers("@im=local");
+               fl_xim_im = XOpenIM(fl_display, NULL, NULL, NULL);
+       }
         xim_styles = NULL;
         fl_xim_ic = NULL;
 
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to