From 485385ba02254e5448fe01218ab70a66e34dc227 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 27 Aug 2024 07:25:27 +0000 Subject: [PATCH] Do not reset mouse pane if clicked on status line, it may have been set by a range. --- usr.bin/tmux/server-client.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c index 3dace5bb82b..7d89aee8db6 100644 --- a/usr.bin/tmux/server-client.c +++ b/usr.bin/tmux/server-client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server-client.c,v 1.406 2024/08/26 07:30:46 nicm Exp $ */ +/* $OpenBSD: server-client.c,v 1.407 2024/08/27 07:25:27 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -783,8 +783,7 @@ have_event: log_debug("mouse on pane %%%u border", wp->id); m->wp = wp->id; m->w = wp->window->id; - } else - m->wp = -1; + } /* Stop dragging if needed. */ if (type != DRAG && type != WHEEL && c->tty.mouse_drag_flag != 0) { -- 2.20.1