diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2024-02-12 06:26:23 -0600 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-02-12 13:48:56 +0100 |
commit | 58f94fa0a1333dfccfb24f90b22506b29a64397b (patch) | |
tree | b2b9d4e89560f3c022807f6e1e66cc83f2c58de9 /app/aerc.go | |
parent | 4d14efc470926b3e0ab61efa6b7cdabae3cf1763 (diff) | |
download | aerc-58f94fa0a1333dfccfb24f90b22506b29a64397b.tar.gz |
mouse: use vaxis mouse events
Replace all tcell.EventMouse events with vaxis mouse events
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'app/aerc.go')
-rw-r--r-- | app/aerc.go | 6 |
1 files changed, 2 insertions, 4 deletions
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 |