Fix another case of unbalances lua stack

Previously, client_set_icon() popped the image that was being used. When I made
this use oocairo, I accidentally made this function not pop anything at all, so
the caller has to do this now.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2010-10-10 22:01:41 +02:00
parent e7cd824c07
commit 740db10951
1 changed files with 4 additions and 0 deletions

View File

@ -244,7 +244,11 @@ property_update_net_wm_icon(client_t *c, xcb_get_property_cookie_t cookie)
luaA_object_push(globalconf.L, c); luaA_object_push(globalconf.L, c);
if(ewmh_window_icon_get_reply(cookie)) if(ewmh_window_icon_get_reply(cookie))
{
client_set_icon(globalconf.L, -2, -1); client_set_icon(globalconf.L, -2, -1);
/* remove icon */
lua_pop(globalconf.L, 1);
}
/* remove client */ /* remove client */
lua_pop(globalconf.L, 1); lua_pop(globalconf.L, 1);