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:
parent
e7cd824c07
commit
740db10951
|
@ -244,7 +244,11 @@ property_update_net_wm_icon(client_t *c, xcb_get_property_cookie_t cookie)
|
|||
luaA_object_push(globalconf.L, c);
|
||||
|
||||
if(ewmh_window_icon_get_reply(cookie))
|
||||
{
|
||||
client_set_icon(globalconf.L, -2, -1);
|
||||
/* remove icon */
|
||||
lua_pop(globalconf.L, 1);
|
||||
}
|
||||
|
||||
/* remove client */
|
||||
lua_pop(globalconf.L, 1);
|
||||
|
|
Loading…
Reference in New Issue