diff options
author | Jeffas <dev@jeffas.io> | 2019-07-16 19:06:22 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-07-17 16:00:44 -0400 |
commit | 06af5391a37f5bb59571a641ad832e45d8f39f1e (patch) | |
tree | fcfe7d7a5ce5deb7d725031c82c756df7c3dbcba /lib | |
parent | 8534720e724f4fd38c7ef4fed1e95bc10aa08bfa (diff) | |
download | aerc-06af5391a37f5bb59571a641ad832e45d8f39f1e.tar.gz |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ui/ui.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ui/ui.go b/lib/ui/ui.go index b057885..13b640b 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() |