summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'init.go')
-rw-r--r--init.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/init.go b/init.go
index 8f68fed..60f3871 100644
--- a/init.go
+++ b/init.go
@@ -58,7 +58,7 @@ func init() {
me.myTree.SetChecked = queueSetChecked
me.myTree.ToolkitClose = queueToolkitClose
- me.newWindowTrigger = make(chan bool, 1)
+ me.newWindowTrigger = make(chan *guiWidget, 1)
go newWindowTrigger()
log.Log(NOW, "Init() start pluginChan")
@@ -200,14 +200,17 @@ func newWindowTrigger() {
for {
log.Log(NOW, "newWindowTrigger() for loop")
select {
- case a := <-me.newWindowTrigger:
- log.Log(NOW, "newWindowTrigger() got new window", a)
+ case tk := <-me.newWindowTrigger:
+ log.Log(NOW, "newWindowTrigger() got new window", tk.cuiName)
time.Sleep(200 * time.Millisecond)
redoWindows(1, -1)
if !me.stdout.init {
me.stdout.init = true
relocateStdoutOffscreen()
}
+ tk.makeWindowActive()
+ tk.doWidgetClick(tk.gocuiSize.w0, tk.gocuiSize.h0)
+ setThingsOnTop() // sets help, Stdout, etc on the top after windows have been redrawn
log.Log(NOW, "newWindowTrigger() after sleep")
}
}