summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Lohmann2013-04-23 19:37:28 +0200
committerChristoph Lohmann2013-04-23 19:37:28 +0200
commit6b03bb769a105f797bce40aa0258cf035266e7bf (patch)
tree4d7a86c77fade6e1decd0ecf9da4c73452ed3c3d
parentdb6f796ecfafcee879613b60a772be3e5d9e355e (diff)
downloadst-6b03bb769a105f797bce40aa0258cf035266e7bf.tar.gz
st-6b03bb769a105f797bce40aa0258cf035266e7bf.tar.xz
st-6b03bb769a105f797bce40aa0258cf035266e7bf.zip
Now clipping is more clear.
-rw-r--r--st.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/st.c b/st.c
index f2ee12f..7f53981 100644
--- a/st.c
+++ b/st.c
@@ -2853,6 +2853,8 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {
/* Clean up the region we want to draw to. */
XftDrawRect(xw.draw, bg, winx, winy, width, xw.ch);
+
+ /* Set the clip region because Xft is sometimes dirty. */
r.x = 0;
r.y = 0;
r.height = xw.ch;