From 63b9706441719b53b3504733c51c2387fce9019d Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Mon, 12 Feb 2024 06:26:15 -0600 Subject: aerc: change event interfaces to vaxis events Modify the function signature of Event and MouseEvent interfaces to accept vaxis events. Note that because a vaxis event is an empty interface, the implementations are not affected and the events are delivered as they were before Signed-off-by: Tim Culverhouse Acked-by: Robin Jarry --- lib/ui/tab.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/ui/tab.go') diff --git a/lib/ui/tab.go b/lib/ui/tab.go index f5e89064..704b01db 100644 --- a/lib/ui/tab.go +++ b/lib/ui/tab.go @@ -7,6 +7,7 @@ import ( "github.com/mattn/go-runewidth" "git.sr.ht/~rjarry/aerc/config" + "git.sr.ht/~rockorager/vaxis" ) const tabRuneWidth int = 32 // TODO: make configurable @@ -494,7 +495,7 @@ func (content *TabContent) Draw(ctx *Context) { tab.Content.Draw(ctx) } -func (content *TabContent) MouseEvent(localX int, localY int, event tcell.Event) { +func (content *TabContent) MouseEvent(localX int, localY int, event vaxis.Event) { content.parent.m.Lock() tab := content.tabs[content.curIndex] content.parent.m.Unlock() -- cgit