From 58f94fa0a1333dfccfb24f90b22506b29a64397b Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Mon, 12 Feb 2024 06:26:23 -0600 Subject: mouse: use vaxis mouse events Replace all tcell.EventMouse events with vaxis mouse events Signed-off-by: Tim Culverhouse Acked-by: Robin Jarry --- app/aerc.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'app/aerc.go') diff --git a/app/aerc.go b/app/aerc.go index 2d7ca2e9..fd36b72b 100644 --- a/app/aerc.go +++ b/app/aerc.go @@ -15,7 +15,6 @@ import ( "git.sr.ht/~rockorager/vaxis" "github.com/ProtonMail/go-crypto/openpgp" "github.com/emersion/go-message/mail" - "github.com/gdamore/tcell/v2" "git.sr.ht/~rjarry/aerc/config" "git.sr.ht/~rjarry/aerc/lib" @@ -395,9 +394,8 @@ func (aerc *Aerc) Event(event vaxis.Event) bool { } return false } - case *tcell.EventMouse: - x, y := event.Position() - aerc.grid.MouseEvent(x, y, event) + case vaxis.Mouse: + aerc.grid.MouseEvent(event.Col, event.Row, event) return true case vaxis.PasteStartEvent: aerc.pasting = true -- cgit