diff options
Diffstat (limited to 'eventMouseMove.go')
| -rw-r--r-- | eventMouseMove.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/eventMouseMove.go b/eventMouseMove.go index 991bd62..8f68219 100644 --- a/eventMouseMove.go +++ b/eventMouseMove.go @@ -92,10 +92,14 @@ func mouseMove(g *gocui.Gui) { func (tk *guiWidget) moveNew(g *gocui.Gui) { w, h := g.MousePosition() if tk.node.WidgetType == widget.Window { - w1, h1 := tk.Size() - g.SetView(tk.cuiName, w, h, w+w1, h+h1, 0) - tk.verifyRect() - s := fmt.Sprintf("move(%dx%d) %s ###", w, h, tk.cuiName) + /* + w1, h1 := tk.Size() + g.SetView(tk.cuiName, w, h, w+w1, h+h1, 0) + tk.verifyRect() + s := fmt.Sprintf("move(%dx%d) %s WIN", w, h, tk.cuiName) + */ + tk.redrawWindow(w, h) + s := fmt.Sprintf("move(%dx%d) %s WIN", w, h, tk.cuiName) tk.dumpWidget(s) return } |
