Reset values if fetching icons fail.

SVN revision: 16937
This commit is contained in:
sebastid 2005-09-25 16:56:46 +00:00 committed by sebastid
parent 6a725bba35
commit 88f778038a
1 changed files with 5 additions and 1 deletions

View File

@ -4215,7 +4215,11 @@ _e_border_eval(E_Border *bd)
}
if (!ecore_x_netwm_icons_get(bd->client.win,
&bd->client.netwm.icons, &bd->client.netwm.num_icons))
printf("ERROR: Fetch icon from client\n");
{
printf("ERROR: Fetch icon from client\n");
bd->client.netwm.icons = NULL;
bd->client.netwm.num_icons = 0;
}
else
bd->changes.icon = 1;
bd->client.netwm.fetch.icon = 0;