From 36ee023fb38e2d1ecb38486bb2bceea07e60fc48 Mon Sep 17 00:00:00 2001 From: iglak Date: Mon, 1 Jan 2024 21:45:10 +0100 Subject: [PATCH] fix: wrong window handle on windows --- src/wrapper/clap/wrapper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wrapper/clap/wrapper.rs b/src/wrapper/clap/wrapper.rs index 690159e6..f34fe6e2 100644 --- a/src/wrapper/clap/wrapper.rs +++ b/src/wrapper/clap/wrapper.rs @@ -2773,7 +2773,7 @@ impl Wrapper

{ } else if api == CLAP_WINDOW_API_COCOA { ParentWindowHandle::AppKitNsView(window.specific.cocoa) } else if api == CLAP_WINDOW_API_WIN32 { - ParentWindowHandle::AppKitNsView(window.specific.win32) + ParentWindowHandle::Win32Hwnd(window.specific.win32) } else { nih_debug_assert_failure!("Host passed an invalid API"); return false;