titlebar: fix push

Titlebar are not stored inside client but inside global reference table.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-24 11:44:15 +02:00
parent a841790d5b
commit 876602ea91
2 changed files with 2 additions and 3 deletions

View file

@ -1899,7 +1899,7 @@ luaA_client_get_icon(lua_State *L, client_t *c)
static int
luaA_client_get_titlebar(lua_State *L, client_t *c)
{
return luaA_object_push_item(L, -2, c->titlebar);
return luaA_object_push(L, c->titlebar);
}
static int

View file

@ -147,8 +147,7 @@ titlebar_update_geometry(client_t *c)
/* Client geometry without titlebar, but including borders, since that is always consistent. */
titlebar_geometry_compute(c, titlebar_geometry_remove(c->titlebar, 0, c->geometry), &geom);
luaA_object_push(globalconf.L, c);
luaA_object_push_item(globalconf.L, -1, c->titlebar);
luaA_object_push(globalconf.L, c->titlebar);
wibox_moveresize(globalconf.L, -1, geom);
lua_pop(globalconf.L, 2);
}