This commit is contained in:
Ashley Wulber 2026-02-03 16:45:44 -05:00
parent a489a6b790
commit e2918e0de9
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
19 changed files with 9291 additions and 60 deletions

View file

@ -24,10 +24,10 @@ pub use iced_program as program;
pub use program::core;
pub use program::graphics;
pub use program::runtime;
use raw_window_handle::HasWindowHandle;
pub use runtime::futures;
use window_clipboard::mime::ClipboardStoreData;
pub use winit;
use winit::raw_window_handle::HasWindowHandle;
#[cfg(feature = "a11y")]
pub mod a11y;
@ -2271,6 +2271,16 @@ where
window.raw.set_blur(false);
}
}
window::Action::RunWithHandle(id, f) => {
use window::raw_window_handle::HasWindowHandle;
if let Some(handle) = window_manager
.get_mut(id)
.and_then(|window| window.raw.window_handle().ok())
{
f(handle);
}
}
},
Action::System(action) => match action {
system::Action::GetInformation(_channel) => {

View file

@ -10,7 +10,7 @@ use iced_runtime::{
core::{Vector, window},
platform_specific, user_interface,
};
use raw_window_handle::HasWindowHandle;
use winit::raw_window_handle::HasWindowHandle;
#[cfg(all(feature = "wayland", target_os = "linux"))]
pub mod wayland;