aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/raise.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/raise.go b/ui/raise.go
index 7bc916a3..6d08c6bb 100644
--- a/ui/raise.go
+++ b/ui/raise.go
@@ -33,6 +33,7 @@ func RaiseUI() bool {
return false
}
win.SendMessage(hwnd, raiseMsg, 0, 0)
+ win.SetForegroundWindow(hwnd)
return true
}
@@ -48,6 +49,7 @@ func WaitForRaiseUIThenQuit() {
}
win.UnhookWinEvent(handle)
win.SendMessage(hwnd, raiseMsg, 0, 0)
+ win.SetForegroundWindow(hwnd)
os.Exit(0)
return 0
}, 0, 0, win.WINEVENT_SKIPOWNPROCESS|win.WINEVENT_OUTOFCONTEXT)