Skip to content

Commit 94d38e6

Browse files
authored
chore(mouse): provide the correct table size (#4078)
1 parent f48e624 commit 94d38e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mouse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ luaA_mouse_newindex(lua_State *L)
221221
int
222222
luaA_mouse_pushstatus(lua_State *L, int x, int y, uint16_t mask)
223223
{
224-
lua_createtable(L, 0, 2);
224+
lua_createtable(L, 0, 3); /* x, y, buttons */
225225
lua_pushinteger(L, x);
226226
lua_setfield(L, -2, "x");
227227
lua_pushinteger(L, y);

0 commit comments

Comments
 (0)