1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-26 08:22:37 +01:00
Files
wmaker/src
Rodolfo García Peñas (kix) 25d083a85f 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<--------------------------
2013-03-21 10:01:04 +00:00
..
2012-06-26 16:56:20 +01:00
2012-05-04 18:41:01 -03:00
2010-09-11 17:32:57 +02:00
2012-11-10 19:42:24 +00:00
2012-02-19 10:05:31 +00:00
2013-03-21 10:01:04 +00:00
2012-11-11 11:59:41 +00:00
2013-01-12 14:37:31 +00:00
2010-09-11 17:32:57 +02:00
2013-01-12 14:37:31 +00:00
2013-03-21 10:01:04 +00:00
2012-04-04 12:12:12 +01:00
2013-01-12 14:37:31 +00:00
2012-06-24 12:32:36 +01:00
2012-06-24 12:32:36 +01:00
2010-03-27 10:31:13 +01:00
2012-05-04 18:41:01 -03:00
2012-04-04 19:44:40 +01:00
2012-04-04 19:44:40 +01:00
2012-06-24 12:30:17 +01:00
2013-01-12 13:10:29 +00:00
2013-01-12 13:10:29 +00:00
2012-06-26 10:49:05 +01:00
2013-01-12 14:37:31 +00:00
2013-01-12 14:37:31 +00:00
2012-11-19 00:12:46 +01:00
2013-01-12 13:10:29 +00:00
2012-06-23 11:25:37 +01:00
2012-06-23 11:25:37 +01:00
2012-11-11 12:00:59 +00:00
2012-05-04 18:41:01 -03:00
2013-01-07 21:19:40 +00:00
2012-11-14 22:49:42 +00:00
2013-01-12 14:45:29 +00:00
2012-11-11 12:00:59 +00:00
2013-01-12 14:37:31 +00:00
2012-06-24 12:32:36 +01:00
2012-11-17 20:38:36 +01:00
2013-03-21 10:01:04 +00:00
2012-04-04 19:44:40 +01:00
2012-04-04 19:44:40 +01:00
2012-10-30 15:26:52 +00:00
2012-10-30 15:26:52 +00:00
2013-01-07 21:19:40 +00:00
1998-09-29 22:36:29 +00:00