client_focus_update(): Balance the lua stack
authorUli Schlachter <psychon@znc.in>
Tue, 9 Feb 2010 12:58:06 +0000 (13:58 +0100)
committerJulien Danjou <julien@danjou.info>
Tue, 9 Feb 2010 18:46:30 +0000 (19:46 +0100)
There is a push 15 lines before the push that is removed here, but the client
that is pushed there was never popped. Bad.

Fix this by letting luaA_class_emit_signal() do the needed pop for us.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>

objects/client.c

index 2aec1a5..48e6d5a 100644 (file)
@@ -404,7 +404,6 @@ client_focus_update(client_t *c)
 
     ewmh_update_net_active_window(c->phys_screen);
 
-    luaA_object_push(globalconf.L, c);
     luaA_class_emit_signal(globalconf.L, &client_class, "focus", 1);
 }