1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-23 06:38:05 +01:00

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<--------------------------
This commit is contained in:
Rodolfo García Peñas (kix)
2013-03-20 04:02:18 +01:00
committed by Carlos R. Mafra
parent bb48c35522
commit 25d083a85f

View File

@@ -621,7 +621,6 @@ void update_icon_pixmap(WIcon *icon)
XSetWindowBackgroundPixmap(dpy, icon->core->window, icon->pixmap); XSetWindowBackgroundPixmap(dpy, icon->core->window, icon->pixmap);
/* Paint it */ /* Paint it */
XClearWindow(dpy, icon->core->window);
wIconPaint(icon); wIconPaint(icon);
} }