property: do not pop icon, client_set_icon does it

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-22 16:28:31 +02:00
parent a6c0d9398e
commit 8ec4f93a3a
1 changed files with 1 additions and 8 deletions

View File

@ -418,19 +418,12 @@ property_update_net_wm_icon(client_t *c,
if(reply)
{
if(ewmh_window_icon_from_reply(reply))
{
client_set_icon(globalconf.L, -2, -1);
/* remove icon */
lua_pop(globalconf.L, 1);
}
}
else if(ewmh_window_icon_get_reply(ewmh_window_icon_get_unchecked(c->window)))
{
client_set_icon(globalconf.L, -2, -1);
/* remove icon */
lua_pop(globalconf.L, 1);
}
/* remove client */
lua_pop(globalconf.L, 1);
}