From 4bc201754a33f71e70b5d2480f397264f0d02bc2 Mon Sep 17 00:00:00 2001 From: Charlotte Meyer Date: Fri, 30 Jul 2021 20:49:39 +0000 Subject: [PATCH] Fix bad self on cursor:output_at_pos --- kiwmi/luak/kiwmi_cursor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiwmi/luak/kiwmi_cursor.c b/kiwmi/luak/kiwmi_cursor.c index eb6d2b0..c15ac9f 100644 --- a/kiwmi/luak/kiwmi_cursor.c +++ b/kiwmi/luak/kiwmi_cursor.c @@ -26,13 +26,13 @@ static int l_kiwmi_cursor_output_at_pos(lua_State *L) { struct kiwmi_object *obj = - *(struct kiwmi_object **)luaL_checkudata(L, 1, "kiwmi_server"); + *(struct kiwmi_object **)luaL_checkudata(L, 1, "kiwmi_cursor"); struct kiwmi_cursor *cursor = obj->object; struct kiwmi_server *server = cursor->server; struct wlr_output *wlr_output = wlr_output_layout_output_at( - server->desktop.output_layout, cursor->cursor->x, cursor->cursor->y); + server->desktop.output_layout,cursor->cursor->x, cursor->cursor->y); if (wlr_output) { lua_pushcfunction(L, luaK_kiwmi_output_new);