From 14a75a14fa38dbdbe653377b7bd417f0f976024e Mon Sep 17 00:00:00 2001 From: buffet 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 537d0ae..cc9c859 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);