summaryrefslogtreecommitdiff
path: root/eventBindings.go
diff options
context:
space:
mode:
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
}