From 615186f30e863a0a9ae65d744d3c846d9126a591 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 5 Jan 2013 20:53:13 +0100 Subject: [PATCH] Fix mouse.object_under_cursor() with drawins This was telling lua that no results are to be returned, but still tried to return something. Thus, lua ignored the result. Signed-off-by: Uli Schlachter --- mouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mouse.c b/mouse.c index db802d984..5e2cbbef1 100644 --- a/mouse.c +++ b/mouse.c @@ -217,7 +217,7 @@ luaA_mouse_object_under_pointer(lua_State *L) client_t *client; if((drawin = drawin_getbywin(child))) - luaA_object_push(L, drawin); + return luaA_object_push(L, drawin); if((client = client_getbyframewin(child))) return luaA_object_push(globalconf.L, client);