git: 4ea90153ac79 - main - vt(4): Make sure pressing the extend button updates the current selection.

From: Hans Petter Selasky <hselasky_at_FreeBSD.org>
Date: Wed, 05 Oct 2022 09:54:45 UTC
The branch main has been updated by hselasky:

URL: https://cgit.FreeBSD.org/src/commit/?id=4ea90153ac792afd0f8c3db845a09176c8d6dfa3

commit 4ea90153ac792afd0f8c3db845a09176c8d6dfa3
Author:     Hans Petter Selasky <hselasky@FreeBSD.org>
AuthorDate: 2022-10-05 09:40:01 +0000
Commit:     Hans Petter Selasky <hselasky@FreeBSD.org>
CommitDate: 2022-10-05 09:51:41 +0000

    vt(4): Make sure pressing the extend button updates the current selection.
    
    MFC after:      1 week
    Sponsored by:   NVIDIA Networking
---
 sys/dev/vt/vt_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c
index 8f9e1cf6d2b2..ba39daec06e3 100644
--- a/sys/dev/vt/vt_core.c
+++ b/sys/dev/vt/vt_core.c
@@ -2191,7 +2191,7 @@ vt_mouse_event(int type, int x, int y, int event, int cnt, int mlevel)
 
 		vd->vd_mx = x;
 		vd->vd_my = y;
-		if (vd->vd_mstate & MOUSE_BUTTON1DOWN)
+		if (vd->vd_mstate & (MOUSE_BUTTON1DOWN | VT_MOUSE_EXTENDBUTTON))
 			vtbuf_set_mark(&vw->vw_buf, VTB_MARK_MOVE,
 			    vd->vd_mx / vf->vf_width,
 			    vd->vd_my / vf->vf_height);