summaryrefslogtreecommitdiffstats
path: root/pkg/gui
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2019-03-03 16:15:20 +1100
committerJesse Duffield <jessedduffield@gmail.com>2019-03-03 16:15:20 +1100
commita5d27764cd504d671214aac998cdee52d2d0e8fb (patch)
tree4cbbd957f681dce7a16bb091f0e6d05f650457ba /pkg/gui
parent43758cbb5f8c61d29d3f437a40d43daf2cebbfec (diff)
support user configuring mouse events to be enabled
Diffstat (limited to 'pkg/gui')
-rw-r--r--pkg/gui/gui.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go
index a6108738b..a5db4c394 100644
--- a/pkg/gui/gui.go
+++ b/pkg/gui/gui.go
@@ -550,7 +550,9 @@ func (gui *Gui) Run() error {
}
defer g.Close()
- // g.Mouse = true // disabling until this feature is ready
+ if gui.Config.GetUserConfig().GetBool("gui.mouseEvents") {
+ g.Mouse = true
+ }
gui.g = g // TODO: always use gui.g rather than passing g around everywhere