mirror of
https://github.com/tmux/tmux.git
synced 2026-03-06 15:55:33 +00:00
Fix mouse drag in copy-mode to properly select around floating panes.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user