summaryrefslogtreecommitdiff
path: root/eventBindings.go
diff options
context:
space:
mode:
Diffstat (limited to 'eventBindings.go')
-rw-r--r--eventBindings.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/eventBindings.go b/eventBindings.go
index d32f1b2..727ee70 100644
--- a/eventBindings.go
+++ b/eventBindings.go
@@ -79,24 +79,24 @@ func (tk *guiWidget) verifyRect() bool {
// return false
}
var ok bool = true
- if vw0 != tk.gocuiSize.w0 {
+ if vw0 != tk.full.w0 {
// log.Info("verifyRect() FIXING w0", tk.cuiName, vw0, vw1, vh0, vh1, tk.gocuiSize.w0, "w0 =", vw0)
- tk.gocuiSize.w0 = vw0
+ tk.full.w0 = vw0
ok = false
}
- if vw1 != tk.gocuiSize.w1 {
+ if vw1 != tk.full.w1 {
// log.Info("verifyRect() FIXING w1", tk.cuiName, vw0, vw1, vh0, vh1, tk.gocuiSize.w1, "w1 =", vw1)
- tk.gocuiSize.w1 = vw1
+ tk.full.w1 = vw1
ok = false
}
- if vh0 != tk.gocuiSize.h0 {
+ if vh0 != tk.full.h0 {
// log.Info("verifyRect() FIXING h0", tk.cuiName, vw0, vw1, vh0, vh1, tk.gocuiSize.h0)
- tk.gocuiSize.h0 = vh0
+ tk.full.h0 = vh0
ok = false
}
- if vh1 != tk.gocuiSize.h1 {
+ if vh1 != tk.full.h1 {
// log.Info("verifyRect() FIXING h1", tk.cuiName, vw0, vw1, vh0, vh1, tk.gocuiSize.h1)
- tk.gocuiSize.h1 = vh1
+ tk.full.h1 = vh1
ok = false
}
if !ok {
@@ -145,9 +145,9 @@ var notsure *guiWidget
func theNotsure(g *gocui.Gui, v *gocui.View) error {
log.Info("got keypress 2. now what?")
wRoot := me.treeRoot.TK.(*guiWidget)
- wRoot.redoWindows(0, 0)
- // closes anything under your mouse
w, h := g.MousePosition()
+ wRoot.redoWindows(w, h)
+ // closes anything under your mouse
if notsure == nil {
// notsure = makeDropdownView("addWidget() notsure")
notsure = addDropdownTK(-118)