Move alerts onto events rather than checking every loop.

This commit is contained in:
nicm
2015-08-29 08:30:54 +00:00
parent 5267ce8ff4
commit b5aaefc727
8 changed files with 150 additions and 73 deletions

View File

@ -249,10 +249,13 @@ server_start(int lockfd, char *lockfile)
void
server_loop(void)
{
struct window *w;
while (!server_should_shutdown()) {
event_loop(EVLOOP_ONCE);
server_window_loop();
RB_FOREACH(w, windows, &windows)
check_window_name(w);
server_client_loop();
}
}