We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 960c6c1 commit 5c8042bCopy full SHA for 5c8042b
1 file changed
winit-wayland/src/event_loop/mod.rs
@@ -484,17 +484,11 @@ impl EventLoop {
484
})
485
.is_some()
486
{
487
- println!("Windows to close found: {windows_to_close:?}");
488
for w in windows_to_close.into_iter().rev() {
489
self.with_state(|state| {
490
- if state.windows.get_mut().get_mut(&w).is_none() {
491
- println!("Window id not found: {w:?}");
492
- }
493
let parent =
494
state.windows.get_mut().get_mut(&w).unwrap().lock().unwrap().parent();
495
496
- println!("Closing window: {w:?}, Parent: {parent:?}");
497
-
498
parent
499
.and_then(|p| state.windows.get_mut().get_mut(&p))
500
.map(|p| p.lock().unwrap().remove_child(&w));
0 commit comments