diff options
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() |
