From e504d1124aa10d8dcc5ccd1c26937874b16e270a Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Wed, 22 Jun 2022 21:36:57 +1000 Subject: [PATCH] Fix AlwaysOnTop code for Mac --- v2/internal/frontend/desktop/darwin/Application.m | 2 +- v2/internal/frontend/desktop/darwin/frontend.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/v2/internal/frontend/desktop/darwin/Application.m b/v2/internal/frontend/desktop/darwin/Application.m index 9ace230f8..05f79d9d2 100644 --- a/v2/internal/frontend/desktop/darwin/Application.m +++ b/v2/internal/frontend/desktop/darwin/Application.m @@ -95,7 +95,7 @@ void SetSize(void* inctx, int width, int height) { ); } -void SetAlwaysOnTop(void* ctx, int onTop) { +void SetAlwaysOnTop(void* inctx, int onTop) { WailsContext *ctx = (__bridge WailsContext*) inctx; ON_MAIN_THREAD( [ctx SetAlwaysOnTop:onTop]; diff --git a/v2/internal/frontend/desktop/darwin/frontend.go b/v2/internal/frontend/desktop/darwin/frontend.go index b712be714..6a1c9270d 100644 --- a/v2/internal/frontend/desktop/darwin/frontend.go +++ b/v2/internal/frontend/desktop/darwin/frontend.go @@ -157,7 +157,7 @@ func (f *Frontend) WindowCenter() { f.mainWindow.Center() } func (f *Frontend) WindowSetAlwaysOnTop(onTop bool) { - f.mainWindow.AlwaysOnTop(onTop) + f.mainWindow.SetAlwaysOnTop(onTop) } func (f *Frontend) WindowSetPosition(x, y int) {