diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-02-07 06:23:05 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-02-07 06:23:05 +0200 |
commit | b33986c9d13cbea4c91abe5fe68bb4654685c538 (patch) | |
tree | 9787d9bd873c55e1e42dec0b4bd756f8133c90bc /src | |
parent | aa52b2610302030bc9728a5346fc0d887032480a (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/app.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -1560,7 +1560,6 @@ static void runTickers_App_(iApp *d) { | |||
1560 | /* Tickers may add themselves again, so we'll run off a copy. */ | 1560 | /* Tickers may add themselves again, so we'll run off a copy. */ |
1561 | iSortedArray *pending = copy_SortedArray(&d->tickers); | 1561 | iSortedArray *pending = copy_SortedArray(&d->tickers); |
1562 | clear_SortedArray(&d->tickers); | 1562 | clear_SortedArray(&d->tickers); |
1563 | postRefresh_App(); | ||
1564 | iConstForEach(Array, i, &pending->values) { | 1563 | iConstForEach(Array, i, &pending->values) { |
1565 | const iTicker *ticker = i.value; | 1564 | const iTicker *ticker = i.value; |
1566 | if (ticker->callback) { | 1565 | if (ticker->callback) { |
@@ -1573,12 +1572,6 @@ static void runTickers_App_(iApp *d) { | |||
1573 | if (isEmpty_SortedArray(&d->tickers)) { | 1572 | if (isEmpty_SortedArray(&d->tickers)) { |
1574 | d->lastTickerTime = 0; | 1573 | d->lastTickerTime = 0; |
1575 | } | 1574 | } |
1576 | // iForIndices(i, d->window->base.roots) { | ||
1577 | // iRoot *root = d->window->base.roots[i]; | ||
1578 | // if (root) { | ||
1579 | // notifyVisualOffsetChange_Root(root); | ||
1580 | // } | ||
1581 | // } | ||
1582 | } | 1575 | } |
1583 | 1576 | ||
1584 | static int resizeWatcher_(void *user, SDL_Event *event) { | 1577 | static int resizeWatcher_(void *user, SDL_Event *event) { |