Fix screen index by output name
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
2027dd8b02
commit
b02b2f7956
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue