From 043245445ca614963e4b60352bc28c8e8b2f2290 Mon Sep 17 00:00:00 2001 From: bptato Date: Sun, 21 May 2023 23:38:49 +0200 Subject: Run JS jobs on timeout handlers --- src/display/client.nim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/display/client.nim b/src/display/client.nim index 6e9f6331..9cdf95a9 100644 --- a/src/display/client.nim +++ b/src/display/client.nim @@ -392,11 +392,13 @@ proc inputLoop(client: Client) = if Event.Timer in event.events: if event.fd in client.interval_fdis: client.intervals[client.interval_fdis[event.fd]].handler() + client.runJSJobs() elif event.fd in client.timeout_fdis: let id = client.timeout_fdis[event.fd] let timeout = client.timeouts[id] timeout.handler() client.clearTimeout(id) + client.runJSJobs() if client.pager.scommand != "": client.command(client.pager.scommand) client.pager.scommand = "" -- cgit 1.4.1-2-gfad0