aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua7
1 files changed, 7 insertions, 0 deletions
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,
})