Merge pull request #2547 from meithecatte/do-not-segfault
iced_winit: drop Clipboard before Window
This commit is contained in:
commit
8e87d664d4
3 changed files with 27 additions and 10 deletions
|
|
@ -68,7 +68,7 @@ pub fn main() -> Result<(), winit::error::EventLoopError> {
|
|||
Size::new(physical_size.width, physical_size.height),
|
||||
window.scale_factor(),
|
||||
);
|
||||
let clipboard = Clipboard::connect(&window);
|
||||
let clipboard = Clipboard::connect(window.clone());
|
||||
|
||||
let backend =
|
||||
wgpu::util::backend_bits_from_env().unwrap_or_default();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue