summaryrefslogtreecommitdiff
path: root/find.go
diff options
context:
space:
mode:
Diffstat (limited to 'find.go')
-rw-r--r--find.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/find.go b/find.go
index a2978a6..f94da20 100644
--- a/find.go
+++ b/find.go
@@ -53,6 +53,7 @@ func findByXYreal(widget *guiWidget, w int, h int) []*guiWidget {
return widgets
}
+// returns the "highest priority widget under the mouse
func findUnderMouse() *guiWidget {
w, h := me.baseGui.MousePosition()
@@ -88,6 +89,7 @@ func findUnderMouse() *guiWidget {
return found
}
+// panics. todo: fix ctrl-mouse click?
// find the widget under the mouse click
func ctrlDown(g *gocui.Gui, v *gocui.View) error {
var found *guiWidget