Browse Source

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>
Uli Schlachter 9 years ago
parent
commit
740db10951
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      property.c

+ 4
- 0
property.c View File

@@ -244,7 +244,11 @@ property_update_net_wm_icon(client_t *c, xcb_get_property_cookie_t cookie)
244 244
     luaA_object_push(globalconf.L, c);
245 245
 
246 246
     if(ewmh_window_icon_get_reply(cookie))
247
+    {
247 248
         client_set_icon(globalconf.L, -2, -1);
249
+        /* remove icon */
250
+        lua_pop(globalconf.L, 1);
251
+    }
248 252
 
249 253
     /* remove client */
250 254
     lua_pop(globalconf.L, 1);

Loading…
Cancel
Save