summaryrefslogtreecommitdiff
path: root/eventMouseMove.go
diff options
context:
space:
mode:
Diffstat (limited to 'eventMouseMove.go')
-rw-r--r--eventMouseMove.go28
1 files changed, 8 insertions, 20 deletions
diff --git a/eventMouseMove.go b/eventMouseMove.go
index 4402219..e410f1d 100644
--- a/eventMouseMove.go
+++ b/eventMouseMove.go
@@ -92,40 +92,28 @@ func mouseMove(g *gocui.Gui) {
func (tk *guiWidget) moveNew() {
w, h := me.baseGui.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 WIN", w, h, tk.cuiName)
- */
- tk.gocuiSize.w0 = w
- tk.gocuiSize.h0 = h
+ tk.DrawAt(w, h)
tk.redrawWindow(w, h)
s := fmt.Sprintf("move(%dx%d) %s WIN", w, h, tk.cuiName)
tk.dumpWidget(s)
return
}
if tk.node.WidgetType == widget.Flag {
- // outputW, outputH := tk.Size()
- // g.SetView(tk.cuiName, w-xOffset, h-yOffset, w-xOffset+outputW+20, h-yOffset+outputH+me.FramePadH+20, 0)
me.baseGui.SetView(tk.cuiName, w-3, h-3, w+20, h+20, 0)
tk.verifyRect()
s := fmt.Sprintf("move(%dx%d) %s ###", w, h, tk.cuiName)
tk.dumpWidget(s)
- // me.startOutputW = w - xOffset
- // me.startOutputH = h - yOffset
- // g.SetViewOnBottom(tk.cuiName)
return
} else {
// log.Info("NOT MOVE FLAG. PASSING MOVE TO MSG", tk.node.WidgetType)
+ // tk.dumpWidget("moveNew() MSG" + tk.cuiName)
+ outputW := 180
+ outputH := 40
+ me.baseGui.SetView("msg", w-xOffset, h-yOffset, w-xOffset+outputW, h-yOffset+outputH+me.FramePadH, 0)
+ me.startOutputW = w - xOffset
+ me.startOutputH = h - yOffset
+ me.baseGui.SetViewOnBottom("msg")
}
- // tk.dumpWidget("moveNew() MSG" + tk.cuiName)
- outputW := 180
- outputH := 40
- me.baseGui.SetView("msg", w-xOffset, h-yOffset, w-xOffset+outputW, h-yOffset+outputH+me.FramePadH, 0)
- me.startOutputW = w - xOffset
- me.startOutputH = h - yOffset
- me.baseGui.SetViewOnBottom("msg")
}
func createStdout(g *gocui.Gui) bool {