Store pane ID for mouse last pane instead of a pointer to the pane.

This commit is contained in:
Nicholas Marriott
2026-05-20 13:41:13 +01:00
parent 2a9ba51907
commit c56bc9ed05
5 changed files with 36 additions and 29 deletions

1
tty.c
View File

@@ -108,6 +108,7 @@ tty_init(struct tty *tty, struct client *c)
tty->cstyle = SCREEN_CURSOR_DEFAULT;
tty->ccolour = -1;
tty->fg = tty->bg = -1;
tty->mouse_last_pane = -1;
if (tcgetattr(c->fd, &tty->tio) != 0)
return (-1);