mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 19:58:48 +00:00
Do not check for latest client in callback since the type may be latest
but with no window, fixes new-session -x and -y with another attached client. GitHub issue 4268.
This commit is contained in:
parent
feb090abb3
commit
d361f21065
9
resize.c
9
resize.c
@ -264,16 +264,9 @@ skip:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
default_window_size_skip_client(struct client *loop, int type,
|
default_window_size_skip_client(struct client *loop, __unused int type,
|
||||||
__unused int current, struct session *s, struct window *w)
|
__unused int current, struct session *s, struct window *w)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
* Latest checks separately, so do not check here. Otherwise only
|
|
||||||
* include clients where the session contains the window or where the
|
|
||||||
* session is the given session.
|
|
||||||
*/
|
|
||||||
if (type == WINDOW_SIZE_LATEST)
|
|
||||||
return (0);
|
|
||||||
if (w != NULL && !session_has(loop->session, w))
|
if (w != NULL && !session_has(loop->session, w))
|
||||||
return (1);
|
return (1);
|
||||||
if (w == NULL && loop->session != s)
|
if (w == NULL && loop->session != s)
|
||||||
|
Loading…
Reference in New Issue
Block a user