mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
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:
parent
a841790d5b
commit
876602ea91
2 changed files with 2 additions and 3 deletions
2
client.c
2
client.c
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue