The branch main has been updated by hselasky:

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

commit 4ea90153ac792afd0f8c3db845a09176c8d6dfa3
Author:     Hans Petter Selasky <hsela...@freebsd.org>
AuthorDate: 2022-10-05 09:40:01 +0000
Commit:     Hans Petter Selasky <hsela...@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);

Reply via email to