Skip to content

Commit

Permalink
fix: wrong window handle on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
toiglak authored and robbert-vdh committed Jan 1, 2024
1 parent 4e8beb1 commit 36ee023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wrapper/clap/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2773,7 +2773,7 @@ impl<P: ClapPlugin> Wrapper<P> {
} 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;
Expand Down

0 comments on commit 36ee023

Please sign in to comment.