From nobody Wed Oct 12 15:54:17 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Mncf14pVcz4fdL2; Wed, 12 Oct 2022 15:54:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mncf121JWz3H36; Wed, 12 Oct 2022 15:54:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665590057; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Zaq55EeWx+/8+vNibD9CVFjfAL3xCi74+TyzET9duEU=; b=JGy852P56yMvMxVhrgIDeoG4IGrAzAzXD3wJJEDAnPL6aOqPhtlxpeL9hHQzWxBL1FtRww txYrUGp7SpQbnvR+7jQ9irCh7jaRwMWzu6tnxtklaBRzlfBIlYgavlnYukaQ8dnlvFVSAX xPP0lP2kdqbRftfbYhPVhRmK8FCsv5zMSqwl9Q/KZPcq6xUP3k5xLpPVShmK2m540DHAXK QgIZ6CEhMsNOLgbjoHgcodoU1CbTxaUmJ6dVpS59m4uVSr3L4o423ScxFSl66qmQI4etxA mcyPIkPNaej5FxUY7YXoudSetf4YrNoo618EQSFEVWbrJifU/HQ/z9OgQb+wwg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Mncf117LRz1MM9; Wed, 12 Oct 2022 15:54:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 29CFsHVM043861; Wed, 12 Oct 2022 15:54:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29CFsHa7043860; Wed, 12 Oct 2022 15:54:17 GMT (envelope-from git) Date: Wed, 12 Oct 2022 15:54:17 GMT Message-Id: <202210121554.29CFsHa7043860@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Hans Petter Selasky Subject: git: bed7844abc6f - stable/13 - vt(4): Make sure pressing the extend button updates the current selection. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: hselasky X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: bed7844abc6f9472cd245b53a60112c94d2bd08c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665590057; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Zaq55EeWx+/8+vNibD9CVFjfAL3xCi74+TyzET9duEU=; b=PSOkhkFC8Od0ajrVvLY5ux+sBFv3BP0coyH/X7j2md90nwUBJ7+4lNmUkspEC0s5yso+ww 3I9Athm6lJLOD4Cw7J6r+PaoJxvX8+AWvi3CvCfMXMdfrWJm2cFTmU2F22Fb3z/d2zFVpf 3oU+Pr3HPFMtoae5fAqYffuI/c43xMY550K5EdJrqVgzE0RlQn64JzlDh51E+IbfYszAgw iw8jrkEbUV0BeFZ35cC12mwxqdXlh2Rex4bycqhrILQxOHQdzYwzWcq7+iXa7U1LDAcgk9 FqV1P4j2HET1blcH42wYaAPVBrPux2nbYrxaS+QaZYg5HzBzTlevA4X37Jty9g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665590057; a=rsa-sha256; cv=none; b=w7lInbj0rkTUyIdSxrH8e+E5cIM2As9guDXNeBIWaeBcebDncoG/SOH1EyjHyhpb9BNm6D bsAnmrgYkBHqn2pi4GB2NEHK7/mCl/jDdbOLxoXOUlEN4enbKXIVP3i59ZX628DCjvZyY1 U7/ocoWamoOSzDCH8LrgU6qhWW5M168cFPB/Pe/WcgeBBiGGigEx0lb5WUytx7X1bbD5j2 MPt/hsYLmXXQ2XfXoXyb2HiJPtWOoqyFkQDnHXYb+LJcvc0UgXHHOg2MwVVTKwRtegSypl GEGPfWZu5XsPtGTbblRL1G7pIgIpMbj0gMVUHyxourceXwE0jJNZRSoDXx9VdQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=bed7844abc6f9472cd245b53a60112c94d2bd08c commit bed7844abc6f9472cd245b53a60112c94d2bd08c Author: Hans Petter Selasky AuthorDate: 2022-10-05 09:40:01 +0000 Commit: Hans Petter Selasky 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);