We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0646280 commit 0b14048Copy full SHA for 0b14048
2 files changed
native/src/window/event.rs
@@ -29,4 +29,7 @@ pub enum Event {
29
/// There will be a single `FilesHoveredLeft` event triggered even if
30
/// multiple files were hovered.
31
FilesHoveredLeft,
32
+
33
+ /// A window was focused or not
34
+ Focused(bool),
35
}
winit/src/conversion.rs
@@ -121,6 +121,9 @@ pub fn window_event(
121
WindowEvent::Touch(touch) => {
122
Some(Event::Touch(touch_event(*touch, scale_factor)))
123
124
+ WindowEvent::Focused(focused) => {
125
+ Some(Event::Window(window::Event::Focused(*focused)))
126
+ }
127
_ => None,
128
129
0 commit comments