From b02b2f79569f1a155ff04a81a087804a5779b860 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 27 Feb 2016 16:45:43 +0100 Subject: [PATCH] Fix screen index by output name Signed-off-by: Uli Schlachter --- objects/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objects/screen.c b/objects/screen.c index a18d9646..924b3059 100644 --- a/objects/screen.c +++ b/objects/screen.c @@ -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));