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 <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2013-01-05 20:53:13 +01:00
parent 3a25e78224
commit 615186f30e
1 changed files with 1 additions and 1 deletions

View File

@ -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);