mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Fix closing of viewports (#3591)
This ensures the closed viewport gets a close-event, and that it and the parent viewport gets repainting, allowing the event to be registered.
This commit is contained in:
@@ -53,8 +53,7 @@ impl EguiGlow {
|
||||
}
|
||||
|
||||
pub fn on_window_event(&mut self, event: &winit::event::WindowEvent<'_>) -> EventResponse {
|
||||
self.egui_winit
|
||||
.on_window_event(&self.egui_ctx, event, ViewportId::ROOT)
|
||||
self.egui_winit.on_window_event(&self.egui_ctx, event)
|
||||
}
|
||||
|
||||
/// Call [`Self::paint`] later to paint.
|
||||
|
||||
Reference in New Issue
Block a user