summaryrefslogtreecommitdiff
path: root/eventBindings.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-06 21:25:51 -0600
committerJeff Carr <[email protected]>2025-02-06 21:25:51 -0600
commit3d104d5b4a61ca4d32956c771f8882a215574515 (patch)
tree0fa28ea373868a3ae7eb15a5c468ca6911d0920b /eventBindings.go
parent0b265d2b72a474c11512982ce937d7323ff8b41c (diff)
dragging and window placement is still messed up
Diffstat (limited to 'eventBindings.go')
-rw-r--r--eventBindings.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/eventBindings.go b/eventBindings.go
index 16d5549..d51e061 100644
--- a/eventBindings.go
+++ b/eventBindings.go
@@ -141,7 +141,10 @@ func tabCycleWindows(g *gocui.Gui, v *gocui.View) error {
return nil
}
tk.makeWindowActive()
- tk.doWidgetClick(tk.gocuiSize.w0, tk.gocuiSize.h0)
+ w, h := g.MousePosition()
+ me.downW = w
+ me.downH = h
+ tk.doWindowClick()
return nil
}