« get me outta code hell

Fix menuLayer capturing all mouse events! - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2019-08-25 18:08:59 -0300
committerFlorrie <towerofnix@gmail.com>2019-08-25 18:10:49 -0300
commit6fb6f86f3791b1d8265a2500f5b08e00f95ac2f1 (patch)
tree1efd7ee84c638fa9a296f66720aee21eac0350bf
parent59d4eb91315b39e2ef4a46045cc6cbe2fd5657b2 (diff)
Fix menuLayer capturing all mouse events!
m---------tui-lib0
-rw-r--r--ui.js1
2 files changed, 1 insertions, 0 deletions
diff --git a/tui-lib b/tui-lib
-Subproject acb8c05987c72ceca423acf2f5761a50f641d1f
+Subproject 878e55e7c2a203d89fb1dad83ba6d6d8751b521
diff --git a/ui.js b/ui.js
index 6d49649..5371b56 100644
--- a/ui.js
+++ b/ui.js
@@ -166,6 +166,7 @@ class AppElement extends FocusElement {
 
     // We add this is a child later (so that it's on top of every element).
     this.menuLayer = new DisplayElement()
+    this.menuLayer.clickThrough = true
     this.showContextMenu = this.showContextMenu.bind(this)
 
     this.menubar = new Menubar(this.showContextMenu)