From b2b840619244e9dcca477aae0e1ce06d90b3f2c7 Mon Sep 17 00:00:00 2001 From: Alula <6276139+alula@users.noreply.github.com> Date: Wed, 28 Aug 2024 22:21:47 +0200 Subject: [PATCH] Fix SDL_SysWMinfo usage on macOS --- src/framework/backend_sdl2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/backend_sdl2.rs b/src/framework/backend_sdl2.rs index a47c104..8e36c70 100644 --- a/src/framework/backend_sdl2.rs +++ b/src/framework/backend_sdl2.rs @@ -242,7 +242,7 @@ impl SDL2EventLoop { let mut whandle = self.refs.deref().borrow().window.window().raw(); if sdl2_sys::SDL_GetWindowWMInfo(whandle, &mut winfo as *mut _) != sdl2_sys::SDL_bool::SDL_FALSE { - let window = winfo.info.x11.display as *mut objc2::runtime::AnyObject; + let window = winfo.info.cocoa.window as *mut objc2::runtime::AnyObject; if enabled { let _: () = msg_send![window, setTitlebarAppearsTransparent:YES];