We already loop over the windows in server_client_loop, so don't do it

again in server_loop just to check names.
This commit is contained in:
nicm 2015-08-29 08:54:41 +00:00
parent b5aaefc727
commit b9f0571780
2 changed files with 3 additions and 4 deletions

View File

@ -717,6 +717,7 @@ server_client_loop(void)
}
wp->flags &= ~PANE_REDRAW;
}
check_window_name(w);
}
}

View File

@ -249,13 +249,11 @@ server_start(int lockfd, char *lockfile)
void
server_loop(void)
{
struct window *w;
while (!server_should_shutdown()) {
log_debug("event dispatch enter");
event_loop(EVLOOP_ONCE);
log_debug("event dispatch exit");
RB_FOREACH(w, windows, &windows)
check_window_name(w);
server_client_loop();
}
}