mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 03:08:46 +00:00
Don't let server_client_check_focus use a dead bufferevent, from Romain
Francoise.
This commit is contained in:
parent
55640a31b3
commit
5dda1abc32
@ -514,8 +514,10 @@ server_client_loop(void)
|
|||||||
|
|
||||||
w->flags &= ~WINDOW_REDRAW;
|
w->flags &= ~WINDOW_REDRAW;
|
||||||
TAILQ_FOREACH(wp, &w->panes, entry) {
|
TAILQ_FOREACH(wp, &w->panes, entry) {
|
||||||
|
if (wp->fd != -1) {
|
||||||
server_client_check_focus(wp);
|
server_client_check_focus(wp);
|
||||||
server_client_check_resize(wp);
|
server_client_check_resize(wp);
|
||||||
|
}
|
||||||
wp->flags &= ~PANE_REDRAW;
|
wp->flags &= ~PANE_REDRAW;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -527,7 +529,7 @@ server_client_check_resize(struct window_pane *wp)
|
|||||||
{
|
{
|
||||||
struct winsize ws;
|
struct winsize ws;
|
||||||
|
|
||||||
if (wp->fd == -1 || !(wp->flags & PANE_RESIZE))
|
if (!(wp->flags & PANE_RESIZE))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
memset(&ws, 0, sizeof ws);
|
memset(&ws, 0, sizeof ws);
|
||||||
|
Loading…
Reference in New Issue
Block a user