mirror of
https://github.com/emilk/egui.git
synced 2026-06-27 15:13:12 -04:00
Now a embedded window will only render in his parent window
This commit is contained in:
@@ -458,6 +458,9 @@ impl<'open> Window<'open> {
|
||||
.show(ctx, |ui| Some(add_contents(ui)))
|
||||
})
|
||||
} else {
|
||||
if ctx.current_window() != ctx.current_rendering_window() {
|
||||
return None;
|
||||
}
|
||||
let frame = frame.unwrap_or_else(|| Frame::window(&ctx.style()));
|
||||
|
||||
let is_explicitly_closed = matches!(open, Some(false));
|
||||
|
||||
Reference in New Issue
Block a user