X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;ds=sidebyside;f=x.c;h=191e5dc7a4652088c878dab30375ff33b08cf93d;hb=0ac685fc015362e749bf82cfaa3cfe2dd9b305f0;hp=ab9593ead339ee991129a86da63728a01576adc1;hpb=77c51c5a6b16387f1792e23acbcf2080f790aa25;p=st.git diff --git a/x.c b/x.c index ab9593e..191e5dc 100644 --- a/x.c +++ b/x.c @@ -507,7 +507,6 @@ xsetsel(char *str, Time t) XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, t); if (XGetSelectionOwner(xw.dpy, XA_PRIMARY) != xw.win) selclear_(NULL); - xclipcopy(); } void @@ -1093,6 +1092,9 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x frc[frclen].font = XftFontOpenPattern(xw.dpy, fontpattern); + if (!frc[frclen].font) + die("XftFontOpenPattern failed seeking fallback font: %s\n", + strerror(errno)); frc[frclen].flags = frcflags; frc[frclen].unicodep = rune;