[core] fix broken "sparse" updates

c77f3aa accidentially broke "sparse" updates (i.e. updates that do not
trigger during each update interval).

Introduce a new update parameter, "force", to model the use case "update
everything on SIGUSR1".

fixes #692
This commit is contained in:
tobi-wan-kenobi 2020-08-28 17:14:05 +02:00
parent 362d1a5f6f
commit 905f71fa52
2 changed files with 3 additions and 5 deletions

View file

@ -106,7 +106,7 @@ def main():
def sig_USR1_handler(signum,stack):
if update_lock.acquire(blocking=False) == True:
core.event.trigger("update", redraw_only=False)
core.event.trigger("update", force=True)
core.event.trigger("draw")
update_lock.release()