Fix screen index by output name

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-02-27 16:45:43 +01:00
parent 2027dd8b02
commit b02b2f7956
1 changed files with 1 additions and 1 deletions

View File

@ -618,7 +618,7 @@ luaA_screen_module_index(lua_State *L)
foreach(screen, globalconf.screens)
foreach(output, (*screen)->outputs)
if(A_STREQ(output->name, name))
return luaA_object_push(L, screen);
return luaA_object_push(L, *screen);
}
return luaA_object_push(L, luaA_checkscreen(L, 2));