diff options
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -1484,7 +1484,9 @@ static void runTickers_App_(iApp *d) { | |||
1484 | } | 1484 | } |
1485 | iForIndices(i, d->window->base.roots) { | 1485 | iForIndices(i, d->window->base.roots) { |
1486 | iRoot *root = d->window->base.roots[i]; | 1486 | iRoot *root = d->window->base.roots[i]; |
1487 | notifyVisualOffsetChange_Root(root); | 1487 | if (root) { |
1488 | notifyVisualOffsetChange_Root(root); | ||
1489 | } | ||
1488 | } | 1490 | } |
1489 | } | 1491 | } |
1490 | 1492 | ||
@@ -1558,6 +1560,14 @@ void refresh_App(void) { | |||
1558 | iConstForEach(PtrArray, j, &windows) { | 1560 | iConstForEach(PtrArray, j, &windows) { |
1559 | iWindow *win = j.ptr; | 1561 | iWindow *win = j.ptr; |
1560 | setCurrent_Window(win); | 1562 | setCurrent_Window(win); |
1563 | iForIndices(i, win->roots) { | ||
1564 | iRoot *root = win->roots[i]; | ||
1565 | if (root && root->didOverflowScroll) { | ||
1566 | /* Some widgets may need a just-in-time visual update. */ | ||
1567 | notifyVisualOffsetChange_Root(root); | ||
1568 | root->didOverflowScroll = iFalse; | ||
1569 | } | ||
1570 | } | ||
1561 | switch (win->type) { | 1571 | switch (win->type) { |
1562 | case main_WindowType: | 1572 | case main_WindowType: |
1563 | // iTime draw; | 1573 | // iTime draw; |