Skip to content

Commit

Permalink
hacky solution to avoid crashes in st by render blank space
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonBarwald authored and Anton Bärwald committed Aug 21, 2020
1 parent de6fd85 commit e55d28a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,12 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
drawboxes(winx, winy, width / len, win.ch, fg, bg, specs, len);
} else {
/* Render the glyphs. */
XftDrawGlyphFontSpec(xw.draw, fg, specs, len);
FcBool b = FcFalse;
FcPatternGetBool(specs->font->pattern, FC_COLOR, 0, &b);
if (!b) {
XftDrawGlyphFontSpec(xw.draw, fg, specs, len);
}

}

/* Render underline and strikethrough. */
Expand Down

0 comments on commit e55d28a

Please sign in to comment.