From: nicm Date: Tue, 27 Aug 2024 07:25:27 +0000 (+0000) Subject: Do not reset mouse pane if clicked on status line, it may have been set X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=485385ba02254e5448fe01218ab70a66e34dc227;p=openbsd Do not reset mouse pane if clicked on status line, it may have been set by a range. --- 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) {