File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,6 @@ debug = []
12
12
13
13
[dependencies ]
14
14
iced_native = { version = " 0.1.0-alpha" , path = " ../native" }
15
- winit = { version = " 0.20.0-alpha3 " , git = " https://github.com/rust-windowing/winit " , rev = " 709808eb4e69044705fcb214bcc30556db761405 " }
15
+ winit = " 0.20.0-alpha4 "
16
16
futures = { version = " 0.3" , features = [" thread-pool" ] }
17
17
log = " 0.4"
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ pub trait Application: Sized {
142
142
window. request_redraw ( ) ;
143
143
144
144
event_loop. run ( move |event, _, control_flow| match event {
145
- event:: Event :: MainEventsCleared => {
145
+ event:: Event :: EventsCleared => {
146
146
// TODO: We should be able to keep a user interface alive
147
147
// between events once we remove state references.
148
148
//
@@ -209,12 +209,6 @@ pub trait Application: Sized {
209
209
cache = Some ( user_interface. into_cache ( ) ) ;
210
210
}
211
211
212
- window. request_redraw ( ) ;
213
- }
214
- event:: Event :: UserEvent ( message) => {
215
- external_messages. push ( message) ;
216
- }
217
- event:: Event :: RedrawRequested ( _) => {
218
212
debug. render_started ( ) ;
219
213
220
214
if let Some ( new_size) = new_size. take ( ) {
@@ -247,6 +241,9 @@ pub trait Application: Sized {
247
241
// TODO: Handle animations!
248
242
// Maybe we can use `ControlFlow::WaitUntil` for this.
249
243
}
244
+ event:: Event :: UserEvent ( message) => {
245
+ external_messages. push ( message) ;
246
+ }
250
247
event:: Event :: WindowEvent {
251
248
event : window_event,
252
249
..
You can’t perform that action at this time.
0 commit comments