diff options
| author | Jeff Carr <[email protected]> | 2025-02-09 03:21:48 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-09 03:21:48 -0600 |
| commit | 5bac0308e55d53e5d1bf0177a1b13751c170598d (patch) | |
| tree | de9b66868863fd048ef822788f3cc58f74794034 /eventMouse.go | |
| parent | 8d8fc22745e8e5497e3db0a3389c17c3030a230f (diff) | |
window close works
Diffstat (limited to 'eventMouse.go')
| -rw-r--r-- | eventMouse.go | 4 |
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) |
