From: "Rodolfo García Peñas (kix)" <[email protected]>
This patch checks that the icon exists before paint it.
---
src/icon.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/icon.c b/src/icon.c
index 94da694..166b8be 100644
--- a/src/icon.c
+++ b/src/icon.c
@@ -755,6 +755,9 @@ static void update_icon_title(WIcon *icon)
void wIconPaint(WIcon *icon)
{
+ if (!icon || !icon->core || !icon->core->screen_ptr)
+ return;
+
WScreen *scr = icon->core->screen_ptr;
XClearWindow(dpy, icon->core->window);
--
1.7.10.4
--
To unsubscribe, send mail to [email protected].