summaryrefslogtreecommitdiff
path: root/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'init.go')
-rw-r--r--init.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/init.go b/init.go
index ad1c1ee..3f3d885 100644
--- a/init.go
+++ b/init.go
@@ -243,6 +243,13 @@ func refreshGocui() {
// redraw the windows if something has changed
if time.Since(lastRefresh) > 1000*time.Millisecond {
if me.refresh {
+ if me.stdout.outputOnTop {
+ me.stdout.outputOnTop = false
+ setThingsOnTop()
+ } else {
+ me.stdout.outputOnTop = true
+ setThingsOnTop()
+ }
log.Info("refresh triggered")
me.newWindowTrigger <- me.treeRoot.TK.(*guiWidget)
me.refresh = false