fix: register workspace event poller after

This commit is contained in:
əlemi 2024-09-17 18:10:07 +02:00
parent 2e26df05e2
commit eda004423e
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -113,6 +113,8 @@ local function join(workspace)
print(" >< joined workspace " .. ws.name) print(" >< joined workspace " .. ws.name)
register_cursor_callback(ws) register_cursor_callback(ws)
register_cursor_handler(ws) register_cursor_handler(ws)
CODEMP.workspace = ws
require('codemp.window').update()
utils.poller( utils.poller(
function() return ws:event() end, function() return ws:event() end,
function(event) function(event)
@ -137,9 +139,6 @@ local function join(workspace)
require('codemp.window').update() require('codemp.window').update()
end end
) )
CODEMP.workspace = ws
require('codemp.window').update()
end) end)
end end