mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
Now a WindowEvent::CloseRequested is received will be sent to egui_winit::State in RawInput
Now when we press the close button from a native window if the window has a open variabile connected the window will be closed
This commit is contained in:
@@ -372,8 +372,16 @@ impl State {
|
||||
}
|
||||
|
||||
// Things that may require repaint:
|
||||
WindowEvent::CloseRequested
|
||||
| WindowEvent::CursorEntered { .. }
|
||||
WindowEvent::CloseRequested => {
|
||||
self.egui_input
|
||||
.events
|
||||
.push(egui::Event::WindowEvent(egui::WindowEvent::CloseRequested));
|
||||
EventResponse {
|
||||
consumed: true,
|
||||
repaint: true,
|
||||
}
|
||||
}
|
||||
WindowEvent::CursorEntered { .. }
|
||||
| WindowEvent::Destroyed
|
||||
| WindowEvent::Occluded(_)
|
||||
| WindowEvent::Resized(_)
|
||||
|
||||
Reference in New Issue
Block a user