From cf5b97366d5df635f045b41f749fdc755a509eb5 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 12 May 2019 11:37:45 +0200 Subject: ui: adjust message filter for raise High integrity means UIPI blocks this, so let it through. --- ui/raise.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ui/raise.go') diff --git a/ui/raise.go b/ui/raise.go index c4a45833..9a2794d1 100644 --- a/ui/raise.go +++ b/ui/raise.go @@ -32,8 +32,7 @@ func RaiseUI() bool { if hwnd == 0 { return false } - win.SendMessage(hwnd, selectCorrectTabMsg, 0, 0) - raise(hwnd) + win.SendMessage(hwnd, raiseMsg, 0, 0) return true } @@ -47,8 +46,7 @@ func WaitForRaiseUIThenQuit() { return 0 } win.UnhookWinEvent(handle) - win.SendMessage(hwnd, selectCorrectTabMsg, 0, 0) - raise(hwnd) + win.SendMessage(hwnd, raiseMsg, 0, 0) os.Exit(0) return 0 }, 0, 0, win.WINEVENT_SKIPOWNPROCESS|win.WINEVENT_OUTOFCONTEXT) -- cgit v1.2.3-59-g8ed1b