- xwindow_set_text_property(ev->requestor, ev->property, p, 1);
+ if(!ioncore_g.use_mb && ev->target==XA_STRING){
+ Status st=XStringListToTextProperty((char **)p, 1, &prop);
+ ok=(st!=0);
+ }else if(ioncore_g.use_mb){
+ XICCEncodingStyle style;
+
+ if(ev->target==XA_STRING){
+ style=XStringStyle;
+ ok=TRUE;
+ }else if(ev->target==XA_COMPOUND_TEXT(ioncore_g.dpy)){
+ style=XCompoundTextStyle;
+ ok=TRUE;
+ }
+
+ if(ok){
+ int st=XmbTextListToTextProperty(ioncore_g.dpy, (char **)p, 1,
+ style, &prop);
+ ok=(st>=0);
+ }
+ }