mirror of
https://github.com/tmux/tmux.git
synced 2025-04-21 11:58:48 +00:00
Remove leftover call to control_free_offsets and do not use for
non-control clients.
This commit is contained in:
parent
18aab90959
commit
14a9fd58d5
@ -301,7 +301,6 @@ server_client_lost(struct client *c)
|
|||||||
RB_REMOVE(client_windows, &c->windows, cw);
|
RB_REMOVE(client_windows, &c->windows, cw);
|
||||||
free(cw);
|
free(cw);
|
||||||
}
|
}
|
||||||
control_free_offsets(c);
|
|
||||||
|
|
||||||
TAILQ_REMOVE(&clients, c, entry);
|
TAILQ_REMOVE(&clients, c, entry);
|
||||||
log_debug("lost client %p", c);
|
log_debug("lost client %p", c);
|
||||||
@ -2344,15 +2343,18 @@ server_client_set_flags(struct client *c, const char *flags)
|
|||||||
if (not)
|
if (not)
|
||||||
next++;
|
next++;
|
||||||
|
|
||||||
if (strcmp(next, "no-output") == 0)
|
flag = 0;
|
||||||
flag = CLIENT_CONTROL_NOOUTPUT;
|
if (c->flags & CLIENT_CONTROL) {
|
||||||
else if (strcmp(next, "read-only") == 0)
|
if (strcmp(next, "no-output") == 0)
|
||||||
|
flag = CLIENT_CONTROL_NOOUTPUT;
|
||||||
|
}
|
||||||
|
if (strcmp(next, "read-only") == 0)
|
||||||
flag = CLIENT_READONLY;
|
flag = CLIENT_READONLY;
|
||||||
else if (strcmp(next, "ignore-size") == 0)
|
else if (strcmp(next, "ignore-size") == 0)
|
||||||
flag = CLIENT_IGNORESIZE;
|
flag = CLIENT_IGNORESIZE;
|
||||||
else if (strcmp(next, "active-pane") == 0)
|
else if (strcmp(next, "active-pane") == 0)
|
||||||
flag = CLIENT_ACTIVEPANE;
|
flag = CLIENT_ACTIVEPANE;
|
||||||
else
|
if (flag == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
log_debug("client %s set flag %s", c->name, next);
|
log_debug("client %s set flag %s", c->name, next);
|
||||||
|
Loading…
Reference in New Issue
Block a user