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) {