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 --- lib/ui/stack.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/ui/stack.go') diff --git a/lib/ui/stack.go b/lib/ui/stack.go index a4017007..890ab272 100644 --- a/lib/ui/stack.go +++ b/lib/ui/stack.go @@ -4,8 +4,7 @@ import ( "fmt" "git.sr.ht/~rjarry/aerc/config" - - "github.com/gdamore/tcell/v2" + "git.sr.ht/~rockorager/vaxis" ) type Stack struct { @@ -34,7 +33,7 @@ func (stack *Stack) Draw(ctx *Context) { } } -func (stack *Stack) MouseEvent(localX int, localY int, event tcell.Event) { +func (stack *Stack) MouseEvent(localX int, localY int, event vaxis.Event) { if len(stack.children) > 0 { if element, ok := stack.Peek().(Mouseable); ok { element.MouseEvent(localX, localY, event) -- cgit