mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-17 00:51:36 +02:00
Convert clients list into a TAILQ.
This commit is contained in:
7
resize.c
7
resize.c
@ -49,7 +49,7 @@ recalculate_sizes(void)
|
||||
struct client *c;
|
||||
struct window *w;
|
||||
struct window_pane *wp;
|
||||
u_int i, ssx, ssy, has, limit;
|
||||
u_int ssx, ssy, has, limit;
|
||||
int flag, has_status, is_zoomed, forced;
|
||||
|
||||
RB_FOREACH(s, sessions, &sessions) {
|
||||
@ -57,9 +57,8 @@ recalculate_sizes(void)
|
||||
|
||||
s->attached = 0;
|
||||
ssx = ssy = UINT_MAX;
|
||||
for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
|
||||
c = ARRAY_ITEM(&clients, i);
|
||||
if (c == NULL || c->flags & CLIENT_SUSPENDED)
|
||||
TAILQ_FOREACH(c, &clients, entry) {
|
||||
if (c->flags & CLIENT_SUSPENDED)
|
||||
continue;
|
||||
if (c->session == s) {
|
||||
if (c->tty.sx < ssx)
|
||||
|
Reference in New Issue
Block a user