From 06af5391a37f5bb59571a641ad832e45d8f39f1e Mon Sep 17 00:00:00 2001 From: Jeffas Date: Tue, 16 Jul 2019 19:06:22 +0100 Subject: Add MouseEnabled config setting This patch adds the ability to control whether aerc captures mouseevents or not. By default it will be set to not capture events. --- lib/ui/ui.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/ui/ui.go b/lib/ui/ui.go index b0578852..13b640b4 100644 --- a/lib/ui/ui.go +++ b/lib/ui/ui.go @@ -32,7 +32,9 @@ func Initialize(conf *config.AercConfig, screen.Clear() screen.HideCursor() - screen.EnableMouse() + if conf.Ui.MouseEnabled { + screen.EnableMouse() + } width, height := screen.Size() -- cgit