[hackers] [st] Resize now uses xclear(). || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Sat, 13 Apr 2013 09:51:02 +0200

commit de4cd2f6afdf450aaa97abb328f4c4849602c7db
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Sat Apr 13 09:49:11 2013 +0200

    Resize now uses xclear().

diff --git a/st.c b/st.c
index c4eafa0..de3d045 100644
--- a/st.c
+++ b/st.c
_AT_@ -2358,10 +2358,8 @@ xresize(int col, int row) {
         XFreePixmap(xw.dpy, xw.buf);
         xw.buf = XCreatePixmap(xw.dpy, xw.win, xw.w, xw.h,
                         DefaultDepth(xw.dpy, xw.scr));
- XSetForeground(xw.dpy, dc.gc, dc.col[IS_SET(MODE_REVERSE) ? defaultfg : defaultbg].pixel);
- XFillRectangle(xw.dpy, xw.buf, dc.gc, 0, 0, xw.w, xw.h);
-
         XftDrawChange(xw.draw, xw.buf);
+ xclear(0, 0, xw.w, xw.h);
 }
 
 static inline ushort
Received on Sat Apr 13 2013 - 09:51:02 CEST

This archive was generated by hypermail 2.3.0 : Sat Apr 13 2013 - 10:00:25 CEST