Fix mouse drag in copy-mode to properly select around floating panes.

This commit is contained in:
Michael Grant
2025-11-07 01:24:19 +01:00
parent 61ca158de1
commit cc671e4495
2 changed files with 10 additions and 5 deletions

View File

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