diff -ur sselp-0.1/sselp.c sselp-0.1h/sselp.c --- sselp-0.1/sselp.c 2006-10-13 13:11:28.000000000 +0400 +++ sselp-0.1h/sselp.c 2008-04-17 09:14:02.000000000 +0400 @@ -23,7 +23,8 @@ static unsigned char * getselection(unsigned long offset, unsigned long *len, unsigned long *remain) { - Display *dpy; + Display *dpy; + Atom utf8_string; Atom xa_clip_string; Window w; XEvent ev; @@ -36,9 +37,10 @@ if(!dpy) return NULL; xa_clip_string = XInternAtom(dpy, "BLITZ_SEL_STRING", False); + utf8_string = XInternAtom(dpy, "UTF8_STRING", False); w = XCreateSimpleWindow(dpy, DefaultRootWindow(dpy), 10, 10, 200, 200, 1, CopyFromParent, CopyFromParent); - XConvertSelection(dpy, XA_PRIMARY, XA_STRING, xa_clip_string, + XConvertSelection(dpy, XA_PRIMARY, utf8_string, xa_clip_string, w, CurrentTime); XFlush(dpy); XNextEvent(dpy, &ev);