Skip to content

Commit

Permalink
Add missing runtime.UnlockOSThread() (#2994)
Browse files Browse the repository at this point in the history
Co-authored-by: Lea Anthony <[email protected]>
  • Loading branch information
seleborg and leaanthony authored Oct 21, 2023
1 parent d51268b commit b5406cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions v2/internal/frontend/desktop/windows/frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ func (f *Frontend) WindowCenter() {

func (f *Frontend) WindowSetAlwaysOnTop(b bool) {
runtime.LockOSThread()
defer runtime.UnlockOSThread()
f.mainWindow.SetAlwaysOnTop(b)
}

Expand Down

0 comments on commit b5406cb

Please sign in to comment.