summaryrefslogtreecommitdiff
path: root/eventMouse.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-31 16:05:34 -0600
committerJeff Carr <[email protected]>2025-01-31 22:08:21 -0600
commitbac14a675bb0cf284809ff31db98f4a3799fe1f6 (patch)
treefb8ca54f5b8fcf949fa6b57c417fc23cd5f2254e /eventMouse.go
parentb7cd6d07fcaa69d009b3f33f7c59afb16b719029 (diff)
lots of work to clean up my old code
Diffstat (limited to 'eventMouse.go')
-rw-r--r--eventMouse.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/eventMouse.go b/eventMouse.go
index 9821bd1..8840359 100644
--- a/eventMouse.go
+++ b/eventMouse.go
@@ -29,6 +29,16 @@ import (
// this is run every time the user moves the mouse over the terminal window
func mouseMove(g *gocui.Gui) {
mx, my := g.MousePosition()
+
+ w := mx
+ h := my
+
+ if me.supermouse {
+ for _, tk := range findByXY(w, h) {
+ log.Log(GOCUI, fmt.Sprintf("findByXY() mouseMove() %s wId=%d cuiName=%s at (%d,%d)", tk.WidgetType, tk.node.WidgetId, tk.cuiName, w, h))
+ }
+ }
+
for _, view := range g.Views() {
view.Highlight = false
}