panel: Keep ticking the clock when receiving other events

This commit is contained in:
K. Lange 2021-11-05 10:01:57 +09:00
parent 6c1acb1290
commit 96d7a168a4
1 changed files with 13 additions and 13 deletions

View File

@ -1811,19 +1811,19 @@ int main (int argc, char ** argv) {
free(m);
m = yutani_poll_async(yctx);
}
} else {
struct timeval now;
gettimeofday(&now, NULL);
if (now.tv_sec != last_tick) {
last_tick = now.tv_sec;
waitpid(-1, NULL, WNOHANG);
update_volume_level();
update_network_status();
update_weather_status();
redraw();
if (was_tabbing) {
redraw_alttab();
}
}
struct timeval now;
gettimeofday(&now, NULL);
if (now.tv_sec != last_tick) {
last_tick = now.tv_sec;
waitpid(-1, NULL, WNOHANG);
update_volume_level();
update_network_status();
update_weather_status();
redraw();
if (was_tabbing) {
redraw_alttab();
}
}
}