summaryrefslogtreecommitdiff
path: root/eventMouse.go
diff options
context:
space:
mode:
Diffstat (limited to 'eventMouse.go')
-rw-r--r--eventMouse.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/eventMouse.go b/eventMouse.go
index 35bdf61..05880a8 100644
--- a/eventMouse.go
+++ b/eventMouse.go
@@ -57,8 +57,8 @@ func mouseDown(g *gocui.Gui, v *gocui.View) error {
if win != nil {
w, h := g.MousePosition()
s := fmt.Sprintf("mouse(%d,%d) ", w, h)
- offW := win.gocuiSize.w1 - w
- offH := win.gocuiSize.h1 - h
+ offW := win.full.w1 - w
+ offH := win.full.h1 - h
s += fmt.Sprintf("corner(%d,%d)", offW, offH)
if (offW < 3) && (offH < 3) {
log.Info("attempting resize on ", s, win.cuiName)