Skip to content

Commit

Permalink
Merge branch 'obsd-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasAdam committed Oct 5, 2024
2 parents 114977d + a869693 commit 933d6b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions server-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ server_client_set_overlay(struct client *c, u_int delay,
c->tty.flags |= TTY_FREEZE;
if (c->overlay_mode == NULL)
c->tty.flags |= TTY_NOCURSOR;
window_update_focus(c->session->curw->window);
server_redraw_client(c);
}

Expand All @@ -141,6 +142,7 @@ server_client_clear_overlay(struct client *c)
c->overlay_data = NULL;

c->tty.flags &= ~(TTY_FREEZE|TTY_NOCURSOR);
window_update_focus(c->session->curw->window);
server_redraw_client(c);
}

Expand Down
3 changes: 2 additions & 1 deletion window.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,8 @@ window_pane_update_focus(struct window_pane *wp)
if (c->session != NULL &&
c->session->attached != 0 &&
(c->flags & CLIENT_FOCUSED) &&
c->session->curw->window == wp->window) {
c->session->curw->window == wp->window &&
c->overlay_draw == NULL) {
focused = 1;
break;
}
Expand Down

0 comments on commit 933d6b9

Please sign in to comment.