diff options
| author | Jeff Carr <[email protected]> | 2025-02-06 07:01:27 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-06 07:01:27 -0600 |
| commit | c136ca2b4c33ae639af0f62f604ecdf73ea38d3e (patch) | |
| tree | 645a5073e7a17a256e4b1185dd4a5b65679e3dfc /find.go | |
| parent | 87141b8d990e42bcc65174a43cbd17f0578fe274 (diff) | |
tab rotates through the windows
Diffstat (limited to 'find.go')
| -rw-r--r-- | find.go | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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() |
