screen: add .index property
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
38ada2bdc7
commit
f3e12dbe52
|
@ -46,6 +46,7 @@ icon_name
|
||||||
id
|
id
|
||||||
image
|
image
|
||||||
imagebox
|
imagebox
|
||||||
|
index
|
||||||
instance
|
instance
|
||||||
key
|
key
|
||||||
key_press
|
key_press
|
||||||
|
|
3
screen.c
3
screen.c
|
@ -431,6 +431,9 @@ luaA_screen_index(lua_State *L)
|
||||||
|
|
||||||
switch(a_tokenize(buf, len))
|
switch(a_tokenize(buf, len))
|
||||||
{
|
{
|
||||||
|
case A_TK_INDEX:
|
||||||
|
lua_pushinteger(L, screen_array_indexof(&globalconf.screens, s) + 1);
|
||||||
|
break;
|
||||||
case A_TK_GEOMETRY:
|
case A_TK_GEOMETRY:
|
||||||
luaA_pusharea(L, s->geometry);
|
luaA_pusharea(L, s->geometry);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue