diff options
author | Christoph Lohmann <20h@r-36.net> | 2013-01-19 15:49:34 +0100 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2013-01-19 15:49:34 +0100 |
commit | 15c2bff9faa87644abf96c19b17133d03d40b974 (patch) | |
tree | 05564314741a8198eec2617c98ed4d61fcd12c3e | |
parent | c7b033b8f0a31ec08d3d9dafa390b24c6e232e09 (diff) | |
download | st-patched-15c2bff9faa87644abf96c19b17133d03d40b974.tar.bz2 st-patched-15c2bff9faa87644abf96c19b17133d03d40b974.tar.xz st-patched-15c2bff9faa87644abf96c19b17133d03d40b974.zip |
Yes, xft should be on the buffer. Thanks Mihail Zenkov.
-rw-r--r-- | st.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -2538,7 +2538,7 @@ xinit(void) { | |||
2538 | */ | 2538 | */ |
2539 | 2539 | ||
2540 | /* Xft rendering context */ | 2540 | /* Xft rendering context */ |
2541 | xw.draw = XftDrawCreate(xw.dpy, xw.win, xw.vis, xw.cmap); | 2541 | xw.draw = XftDrawCreate(xw.dpy, xw.buf, xw.vis, xw.cmap); |
2542 | 2542 | ||
2543 | /* input methods */ | 2543 | /* input methods */ |
2544 | if((xw.xim = XOpenIM(xw.dpy, NULL, NULL, NULL)) == NULL) { | 2544 | if((xw.xim = XOpenIM(xw.dpy, NULL, NULL, NULL)) == NULL) { |
@@ -2836,7 +2836,6 @@ redraw(int timeout) { | |||
2836 | struct timespec tv = {0, timeout * 1000}; | 2836 | struct timespec tv = {0, timeout * 1000}; |
2837 | 2837 | ||
2838 | tfulldirt(); | 2838 | tfulldirt(); |
2839 | fprintf(stderr, "draw from redraw\n"); | ||
2840 | draw(); | 2839 | draw(); |
2841 | 2840 | ||
2842 | if(timeout > 0) { | 2841 | if(timeout > 0) { |