From 6ad6e04bb888a8e917c33a7c7f35c215d43deebe Mon Sep 17 00:00:00 2001 From: Charlotte Meyer Date: Sun, 26 Jan 2020 19:31:14 +0000 Subject: [PATCH] Remove tointeger calls to prevent lua from falling back to 0 --- kiwmi/luak/kiwmi_output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiwmi/luak/kiwmi_output.c b/kiwmi/luak/kiwmi_output.c index 32757fe..09e829e 100644 --- a/kiwmi/luak/kiwmi_output.c +++ b/kiwmi/luak/kiwmi_output.c @@ -40,8 +40,8 @@ l_kiwmi_output_move(lua_State *L) struct wlr_output_layout *output_layout = output->desktop->output_layout; - int lx = lua_tointeger(L, 2); - int ly = lua_tointeger(L, 3); + int lx = lua_tonumber(L, 2); + int ly = lua_tonumber(L, 3); wlr_output_layout_move(output_layout, output->wlr_output, lx, ly);