aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2013-04-23 19:37:28 +0200
committerChristoph Lohmann <20h@r-36.net>2013-04-23 19:37:28 +0200
commit6b03bb769a105f797bce40aa0258cf035266e7bf (patch)
tree4d7a86c77fade6e1decd0ecf9da4c73452ed3c3d /st.c
parentdb6f796ecfafcee879613b60a772be3e5d9e355e (diff)
downloadst-6b03bb769a105f797bce40aa0258cf035266e7bf.tar.gz
st-6b03bb769a105f797bce40aa0258cf035266e7bf.tar.bz2
Now clipping is more clear.
Diffstat (limited to 'st.c')
-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;