Removed extra XClearWindow call
commit25d083a85fe6182b598dc75bd0b74b66613b4853
authorRodolfo García Peñas (kix) <kix@kix.es>
Wed, 20 Mar 2013 03:02:18 +0000 (20 04:02 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Thu, 21 Mar 2013 10:01:04 +0000 (21 10:01 +0000)
tree65dbc9f4d079108f0c441fd5e1e24173669322c6
parentbb48c355223d33fd2237b5e6c5c15b9aab3ce876
Removed extra XClearWindow call

The function XClearWindow() is called twice, we can remove one.
See the asterisks (**):

Before the call to wIconPaint():
-----------------8<--------------------------
+++ b/src/icon.c
@@ -621,7 +621,6 @@ void update_icon_pixmap(WIcon *icon)
                XSetWindowBackgroundPixmap(dpy, icon->core->window, icon->pixmap);

        /* Paint it */
**      XClearWindow(dpy, icon->core->window);
        wIconPaint(icon);
 }
-----------------8<--------------------------

First call in wIconPaint() function:
-----------------8<--------------------------
void wIconPaint(WIcon *icon)
{
        WScreen *scr = icon->core->screen_ptr;
        int x, l, w;
        char *tmp;

**      XClearWindow(dpy, icon->core->window);
-----------------8<--------------------------
src/icon.c