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:
parent
3a25e78224
commit
615186f30e
2
mouse.c
2
mouse.c
|
@ -217,7 +217,7 @@ luaA_mouse_object_under_pointer(lua_State *L)
|
||||||
client_t *client;
|
client_t *client;
|
||||||
|
|
||||||
if((drawin = drawin_getbywin(child)))
|
if((drawin = drawin_getbywin(child)))
|
||||||
luaA_object_push(L, drawin);
|
return luaA_object_push(L, drawin);
|
||||||
|
|
||||||
if((client = client_getbyframewin(child)))
|
if((client = client_getbyframewin(child)))
|
||||||
return luaA_object_push(globalconf.L, client);
|
return luaA_object_push(globalconf.L, client);
|
||||||
|
|
Loading…
Reference in New Issue