From 25d083a85fe6182b598dc75bd0b74b66613b4853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Wed, 20 Mar 2013 04:02:18 +0100 Subject: [PATCH] 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 | 1 - 1 file changed, 1 deletion(-) diff --git a/src/icon.c b/src/icon.c index 62f618a5..2c9b27d9 100644 --- a/src/icon.c +++ 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); }