Lines Matching defs:loop

71 	struct client	*loop;
82 TAILQ_FOREACH (loop, &clients, entry) {
83 if (loop->session == NULL)
85 if (loop->flags & CLIENT_NOSIZEFLAGS)
87 if (~loop->flags & CLIENT_IGNORESIZE)
101 struct client *loop;
104 TAILQ_FOREACH(loop, &clients, entry) {
105 if (ignore_client_size(loop) || !session_has(loop->session, w))
119 struct client *loop;
152 TAILQ_FOREACH(loop, &clients, entry) {
153 if (loop != c && ignore_client_size(loop)) {
154 log_debug("%s: ignoring %s (1)", __func__, loop->name);
157 if (loop != c && skip_client(loop, type, current, s, w)) {
158 log_debug("%s: skipping %s (1)", __func__, loop->name);
167 if (type == WINDOW_SIZE_LATEST && n > 1 && loop != w->latest) {
168 log_debug("%s: %s is not latest", __func__, loop->name);
177 cw = server_client_get_client_window(loop, w->id);
186 cx = loop->tty.sx;
187 cy = loop->tty.sy - status_line_size(loop);
205 if (loop->tty.xpixel > *xpixel && loop->tty.ypixel > *ypixel) {
206 *xpixel = loop->tty.xpixel;
207 *ypixel = loop->tty.ypixel;
210 loop->name, cx, cy, *sx, *sy);
223 TAILQ_FOREACH(loop, &clients, entry) {
224 if (loop != c && ignore_client_size(loop))
226 if (loop != c && skip_client(loop, type, current, s, w))
230 if (~loop->flags & CLIENT_WINDOWSIZECHANGED)
232 cw = server_client_get_client_window(loop, w->id);
238 loop->name, w->id, cw->sx, cw->sy);
267 default_window_size_skip_client(struct client *loop, __unused int type,
270 if (w != NULL && !session_has(loop->session, w))
272 if (w == NULL && loop->session != s)
337 recalculate_size_skip_client(struct client *loop, __unused int type,
345 if (loop->session->curw == NULL)
348 return (loop->session->curw->window != w);
349 return (session_has(loop->session, w) == 0);