summaryrefslogtreecommitdiff
path: root/src/ui/scrollwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-20 18:51:03 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-20 18:51:03 +0200
commit5dfb890cf841579edaeb2633025db218e86f45c2 (patch)
treea6937d904579b8d7051cf033e03e99464d298c98 /src/ui/scrollwidget.c
parentaa70507d43d17ca2c426acd6bf91548fe267ac19 (diff)
App: Periodic commands without timers/threads
Now the periodic commands get posted on the main thread at intervals, and the event loop cooperates by not sleeping if there are periodic commands pending. The macOS animation hangup seems to be unrelated, though — perhaps some internal SDL/Metal machinery related to app refresh stopping for a while?
Diffstat (limited to 'src/ui/scrollwidget.c')
-rw-r--r--src/ui/scrollwidget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/scrollwidget.c b/src/ui/scrollwidget.c
index b5b204a1..55ede426 100644
--- a/src/ui/scrollwidget.c
+++ b/src/ui/scrollwidget.c
@@ -112,7 +112,7 @@ static void unfade_ScrollWidget_(iScrollWidget *d, float opacity) {
112 d->willCheckFade = iTrue; 112 d->willCheckFade = iTrue;
113 /* TODO: This causes an inexplicable refresh issue on macOS: the drawing of one frame 113 /* TODO: This causes an inexplicable refresh issue on macOS: the drawing of one frame
114 takes 100ms for some reason (not the current frame but some time after). */ 114 takes 100ms for some reason (not the current frame but some time after). */
115// add_Periodic(periodic_App(), d, "scrollbar.fade"); 115 add_Periodic(periodic_App(), d, "scrollbar.fade");
116 } 116 }
117 refresh_Widget(d); 117 refresh_Widget(d);
118} 118}