titlebar: add position in __index
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
eb2eb9c30b
commit
bfad5a0d0d
|
@ -476,6 +476,7 @@ luaA_titlebar_newindex(lua_State *L)
|
|||
* \lfield border_color Border color.
|
||||
* \lfield fg Foreground color.
|
||||
* \lfield bg Background color.
|
||||
* \lfield position Position.
|
||||
*/
|
||||
static int
|
||||
luaA_titlebar_index(lua_State *L)
|
||||
|
@ -520,6 +521,9 @@ luaA_titlebar_index(lua_State *L)
|
|||
lua_rawseti(L, -2, ++i);
|
||||
}
|
||||
break;
|
||||
case A_TK_POSITION:
|
||||
lua_pushstring(L, position_tostr((*titlebar)->position));
|
||||
break;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue