X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=st.c;h=39a6836b0b0558f7e1249c427ae750b75a2d5d59;hb=f5075a9e9d27c64e115e056c5b973ab783c6c0f3;hp=e27daf0b547228a29f71eb2645ea47c9ca7e638d;hpb=b0bddc694a79dd24edb8f997acadecbff356a9e0;p=st.git diff --git a/st.c b/st.c index e27daf0..39a6836 100644 --- a/st.c +++ b/st.c @@ -1079,16 +1079,9 @@ selrequest(XEvent *e) { void xsetsel(char *str) { - /* register the selection for both the clipboard and the primary */ - Atom clipboard; - free(sel.clip); sel.clip = str; - XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, CurrentTime); - - clipboard = XInternAtom(xw.dpy, "CLIPBOARD", 0); - XSetSelectionOwner(xw.dpy, clipboard, xw.win, CurrentTime); } void @@ -3398,7 +3391,7 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) { break; /* We got a default font for a not found glyph. */ if(!charexists && frc[i].flags == frcflags \ - && unicodep == unicodep) { + && frc[i].unicodep == unicodep) { break; } } @@ -3427,7 +3420,6 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) { FcConfigSubstitute(0, fcpattern, FcMatchPattern); - FcPatternPrint(fcpattern); FcDefaultSubstitute(fcpattern); fontpattern = FcFontSetMatch(0, fcsets, 1,