Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Oct 2022 15:54:17 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: bed7844abc6f - stable/13 - vt(4): Make sure pressing the extend button updates the current selection.
Message-ID:  <202210121554.29CFsHa7043860@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by hselasky:

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

commit bed7844abc6f9472cd245b53a60112c94d2bd08c
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-12 15:53:21 +0000

    vt(4): Make sure pressing the extend button updates the current selection.
    
    Sponsored by:   NVIDIA Networking
    
    (cherry picked from commit 4ea90153ac792afd0f8c3db845a09176c8d6dfa3)
---
 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 6c2039f22406..cd57e8fc9420 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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210121554.29CFsHa7043860>