mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 22:00:03 -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)))
|
.show(ctx, |ui| Some(add_contents(ui)))
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
if ctx.current_window() != ctx.current_rendering_window() {
|
||||||
|
return None;
|
||||||
|
}
|
||||||
let frame = frame.unwrap_or_else(|| Frame::window(&ctx.style()));
|
let frame = frame.unwrap_or_else(|| Frame::window(&ctx.style()));
|
||||||
|
|
||||||
let is_explicitly_closed = matches!(open, Some(false));
|
let is_explicitly_closed = matches!(open, Some(false));
|
||||||
|
|||||||
Reference in New Issue
Block a user