mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 03:08:46 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
057c04e32a
@ -1239,6 +1239,8 @@ server_client_loop(void)
|
||||
struct client *c;
|
||||
struct window *w;
|
||||
struct window_pane *wp;
|
||||
struct winlink *wl;
|
||||
struct session *s;
|
||||
int focus;
|
||||
|
||||
TAILQ_FOREACH(c, &clients, entry) {
|
||||
@ -1255,8 +1257,13 @@ server_client_loop(void)
|
||||
*/
|
||||
focus = options_get_number(global_options, "focus-events");
|
||||
RB_FOREACH(w, windows, &windows) {
|
||||
TAILQ_FOREACH(wl, &w->winlinks, wentry) {
|
||||
s = wl->session;
|
||||
if (s->attached != 0 && s->curw == wl)
|
||||
break;
|
||||
}
|
||||
TAILQ_FOREACH(wp, &w->panes, entry) {
|
||||
if (wp->fd != -1) {
|
||||
if (wl != NULL && wp->fd != -1) {
|
||||
if (focus)
|
||||
server_client_check_focus(wp);
|
||||
server_client_check_resize(wp);
|
||||
|
Loading…
Reference in New Issue
Block a user