panel: Keep ticking the clock when receiving other events
This commit is contained in:
parent
6c1acb1290
commit
96d7a168a4
26
apps/panel.c
26
apps/panel.c
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user