summaryrefslogtreecommitdiff
path: root/find.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-06 07:01:27 -0600
committerJeff Carr <[email protected]>2025-02-06 07:01:27 -0600
commitc136ca2b4c33ae639af0f62f604ecdf73ea38d3e (patch)
tree645a5073e7a17a256e4b1185dd4a5b65679e3dfc /find.go
parent87141b8d990e42bcc65174a43cbd17f0578fe274 (diff)
tab rotates through the windows
Diffstat (limited to 'find.go')
-rw-r--r--find.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/find.go b/find.go
index 274e544..6fd84a7 100644
--- a/find.go
+++ b/find.go
@@ -108,6 +108,18 @@ func (tk *guiWidget) findBG() *guiWidget {
return nil
}
+func findWindowUnderMouse() *guiWidget {
+ w, h := me.baseGui.MousePosition()
+
+ // if the stdout window is on top, check it first
+ if me.stdout.outputOnTop {
+ if me.stdout.tk.full.inRect(w, h) {
+ return me.stdout.tk
+ }
+ }
+ return nil
+}
+
// returns the "highest priority widget under the mouse
func findUnderMouse() *guiWidget {
w, h := me.baseGui.MousePosition()