-
-
Notifications
You must be signed in to change notification settings - Fork 311
Open
Description
Hey! Thank you for this crate, it's been extremely useful in my project so far :)
Would it be possible to add support for having extra viewports as native windows, as described here?
I tried to use it with the following code, but the ViewportClass is Embedded, which means the backend will draw additional viewports inside the existing one instead of native windows:
let viewport =
egui::viewport::ViewportBuilder::default().with_window_type(egui::X11WindowType::Desktop);
contexts.ctx_mut()?.show_viewport_immediate(
egui::ViewportId(egui::Id::new("DBG")),
viewport,
|context, vp| {
assert_eq!(egui::ViewportClass::Embedded, false);
egui::Window::new("Debug").show(context, |ui| ui.label("Hi"));
},
);Metadata
Metadata
Assignees
Labels
No labels