Send focus events to pane when entering or leaving popup, GitHub issue

3991.
This commit is contained in:
nicm 2024-10-05 12:10:16 +00:00
parent 455a2b3705
commit a869693405
2 changed files with 4 additions and 1 deletions

View File

@ -121,6 +121,7 @@ server_client_set_overlay(struct client *c, u_int delay,
c->tty.flags |= TTY_FREEZE; c->tty.flags |= TTY_FREEZE;
if (c->overlay_mode == NULL) if (c->overlay_mode == NULL)
c->tty.flags |= TTY_NOCURSOR; c->tty.flags |= TTY_NOCURSOR;
window_update_focus(c->session->curw->window);
server_redraw_client(c); server_redraw_client(c);
} }
@ -145,6 +146,7 @@ server_client_clear_overlay(struct client *c)
c->overlay_data = NULL; c->overlay_data = NULL;
c->tty.flags &= ~(TTY_FREEZE|TTY_NOCURSOR); c->tty.flags &= ~(TTY_FREEZE|TTY_NOCURSOR);
window_update_focus(c->session->curw->window);
server_redraw_client(c); server_redraw_client(c);
} }

View File

@ -482,7 +482,8 @@ window_pane_update_focus(struct window_pane *wp)
if (c->session != NULL && if (c->session != NULL &&
c->session->attached != 0 && c->session->attached != 0 &&
(c->flags & CLIENT_FOCUSED) && (c->flags & CLIENT_FOCUSED) &&
c->session->curw->window == wp->window) { c->session->curw->window == wp->window &&
c->overlay_draw == NULL) {
focused = 1; focused = 1;
break; break;
} }