From b5406cb13ece5c92cd565736bcd0db0759c8c687 Mon Sep 17 00:00:00 2001 From: Carl Seleborg Date: Sat, 21 Oct 2023 07:30:48 +0200 Subject: [PATCH] Add missing runtime.UnlockOSThread() (#2994) Co-authored-by: Lea Anthony --- v2/internal/frontend/desktop/windows/frontend.go | 1 + 1 file changed, 1 insertion(+) diff --git a/v2/internal/frontend/desktop/windows/frontend.go b/v2/internal/frontend/desktop/windows/frontend.go index a753bbd30..c388d7384 100644 --- a/v2/internal/frontend/desktop/windows/frontend.go +++ b/v2/internal/frontend/desktop/windows/frontend.go @@ -211,6 +211,7 @@ func (f *Frontend) WindowCenter() { func (f *Frontend) WindowSetAlwaysOnTop(b bool) { runtime.LockOSThread() + defer runtime.UnlockOSThread() f.mainWindow.SetAlwaysOnTop(b) }