aboutsummaryrefslogtreecommitdiff
path: root/lib/ui
diff options
context:
space:
mode:
authorJeffas <dev@jeffas.io>2019-07-16 19:06:22 +0100
committerDrew DeVault <sir@cmpwn.com>2019-07-17 16:00:44 -0400
commit06af5391a37f5bb59571a641ad832e45d8f39f1e (patch)
treefcfe7d7a5ce5deb7d725031c82c756df7c3dbcba /lib/ui
parent8534720e724f4fd38c7ef4fed1e95bc10aa08bfa (diff)
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/ui')
-rw-r--r--lib/ui/ui.go4
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()