summaryrefslogtreecommitdiff
path: root/eventMouse.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-03 18:50:17 -0600
committerJeff Carr <[email protected]>2025-02-03 18:50:17 -0600
commitd2c681f573a44c5cd572dc8e0d6f470c0cda10ff (patch)
treebee2ef631d99965a1a1afda68de81f292900eb0c /eventMouse.go
parentacb0e43945f75ef3cfeed6588a164901f69b9212 (diff)
windows kinda move around
Diffstat (limited to 'eventMouse.go')
-rw-r--r--eventMouse.go13
1 files changed, 8 insertions, 5 deletions
diff --git a/eventMouse.go b/eventMouse.go
index 4ecfa57..8d88b01 100644
--- a/eventMouse.go
+++ b/eventMouse.go
@@ -52,11 +52,6 @@ func mouseDown(g *gocui.Gui, v *gocui.View) error {
var found bool = false
for _, tk := range findByXY(mx, my) {
tk.dumpWidget("mouseDown()")
- if tk.node.WidgetType == widget.Window {
- log.Info("SENDING CLICK TO WINDOW")
- tk.doWidgetClick(mx, my)
- return nil
- }
if tk.node.WidgetType == widget.Button {
log.Info("SENDING CLICK TO Button")
tk.doWidgetClick(mx, my)
@@ -67,6 +62,14 @@ func mouseDown(g *gocui.Gui, v *gocui.View) error {
tk.doWidgetClick(mx, my)
return nil
}
+ found = true
+ }
+ for _, tk := range findByXY(mx, my) {
+ if tk.node.WidgetType == widget.Window {
+ log.Info("SENDING CLICK TO WINDOW")
+ tk.doWidgetClick(mx, my)
+ return nil
+ }
if tk.node.WidgetType == widget.Label {
log.Info("IGNORE LABLE")
found = false