From b33986c9d13cbea4c91abe5fe68bb4654685c538 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Mon, 7 Feb 2022 06:23:05 +0200 Subject: App: Removed an unnecessary refresh When tickers are being run there already will be a refresh following immediately. Adding a recurring ticker will also post a refresh. --- src/app.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/app.c') diff --git a/src/app.c b/src/app.c index b323f7c6..74a60910 100644 --- a/src/app.c +++ b/src/app.c @@ -1560,7 +1560,6 @@ static void runTickers_App_(iApp *d) { /* Tickers may add themselves again, so we'll run off a copy. */ iSortedArray *pending = copy_SortedArray(&d->tickers); clear_SortedArray(&d->tickers); - postRefresh_App(); iConstForEach(Array, i, &pending->values) { const iTicker *ticker = i.value; if (ticker->callback) { @@ -1573,12 +1572,6 @@ static void runTickers_App_(iApp *d) { if (isEmpty_SortedArray(&d->tickers)) { d->lastTickerTime = 0; } -// iForIndices(i, d->window->base.roots) { -// iRoot *root = d->window->base.roots[i]; -// if (root) { -// notifyVisualOffsetChange_Root(root); -// } -// } } static int resizeWatcher_(void *user, SDL_Event *event) { -- cgit v1.2.3