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

View File

@@ -6507,10 +6507,7 @@ window_copy_drag_update(struct client *c, struct mouse_event *m)
if (c == NULL)
return;
if (c->tty.mouse_wp != NULL)
wp = c->tty.mouse_wp;
else
wp = cmd_mouse_pane(m, NULL, NULL);
wp = cmd_mouse_pane(m, NULL, NULL);
if (wp == NULL)
return;
wme = TAILQ_FIRST(&wp->modes);