From 68448538172663279919b29dd09b5faa51e0628a Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 26 Jul 2025 00:56:14 +0530 Subject: Add web.schedule to schedule an action after qt+libuv tick --- init.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 6e45040..a91ff51 100644 --- a/init.lua +++ b/init.lua @@ -76,6 +76,13 @@ end web.event.add_listener('WinCreated', { callback = function(event) web.decorations.bottom.enable({ win = event.win_id }) + + -- View id will only be available asynchronously after enable + web.schedule(function() + local view = web.decorations.bottom.view({ win = event.win_id }) + print('>>>> view', view) + end) + start_clock(event.win_id) end, }) -- cgit v1.3.1