summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2024-10-01 13:51:10 +1000
committerjacqueline <me@jacqueline.id.au>2024-10-01 13:51:10 +1000
commit825728af23ffe169e30cb84dc4fc50628e4a1499 (patch)
treecc791576e2265f6c802442a4b7cc89318a4442ff /lib
parent3490cceb6b94ffbc947b699c8495cf8500e65b98 (diff)
downloadtangara-fw-825728af23ffe169e30cb84dc4fc50628e4a1499.tar.gz
Ensure the stack is clean after luavgl event callbacks
Diffstat (limited to 'lib')
-rw-r--r--lib/luavgl/src/event.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/luavgl/src/event.c b/lib/luavgl/src/event.c
index 096a6355..d45a6ef9 100644
--- a/lib/luavgl/src/event.c
+++ b/lib/luavgl/src/event.c
@@ -34,6 +34,8 @@ static void luavgl_obj_event_cb(lv_event_t *e)
/* args: obj, code */
luavgl_pcall_int(L, 2, 0);
+
+ lua_settop(L, top);
}
/* obj:onevent(luavgl.EVENT.PRESSED, function(code, value) -- end) */