From 740db109513e91d149876c82154456ccdfd3151e Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 10 Oct 2010 22:01:41 +0200 Subject: [PATCH] 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 --- property.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/property.c b/property.c index 091c4a95..9c4378d5 100644 --- a/property.c +++ b/property.c @@ -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);