mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
titlebar: add position in __index
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
eb2eb9c30b
commit
bfad5a0d0d
1 changed files with 4 additions and 0 deletions
|
@ -476,6 +476,7 @@ luaA_titlebar_newindex(lua_State *L)
|
||||||
* \lfield border_color Border color.
|
* \lfield border_color Border color.
|
||||||
* \lfield fg Foreground color.
|
* \lfield fg Foreground color.
|
||||||
* \lfield bg Background color.
|
* \lfield bg Background color.
|
||||||
|
* \lfield position Position.
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
luaA_titlebar_index(lua_State *L)
|
luaA_titlebar_index(lua_State *L)
|
||||||
|
@ -520,6 +521,9 @@ luaA_titlebar_index(lua_State *L)
|
||||||
lua_rawseti(L, -2, ++i);
|
lua_rawseti(L, -2, ++i);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case A_TK_POSITION:
|
||||||
|
lua_pushstring(L, position_tostr((*titlebar)->position));
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue